{{- if .Values.webConfiguration }}
apiVersion: v1
kind: Secret
metadata:
  name: {{ include "prometheus-pushgateway.fullname" . }}
  labels:
    {{- include "prometheus-pushgateway.defaultLabels" . | nindent 4 }}
data:
  web-config.yaml: {{ include "prometheus-pushgateway.webConfiguration" . | b64enc}}
{{- end }}
