prometheus-postgres-exporter/templates/prometheus-postgres-exporter/secretWebConfig.yaml
Markus Pesch dcc7bae921
Some checks failed
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is failing
fix(secret): adapt of the web config secret
2024-11-26 20:39:41 +01:00

20 lines
638 B
YAML

{{- if not .Values.config.webConfig.existingSecret.enabled }}
---
apiVersion: v1
kind: Secret
metadata:
{{- with (include "prometheus-postgres-exporter.secrets.webConfig.annotations" . | fromYaml) }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with (include "prometheus-postgres-exporter.secrets.webConfig.labels" . | fromYaml) }}
labels:
{{- toYaml . | nindent 4 }}
{{- end }}
name: {{ include "prometheus-postgres-exporter.fullname" . }}-web-config
namespace: {{ .Release.Namespace }}
stringData:
webConfig.yaml: |
{{- toYaml .Values.config.webConfig.secret.webConfig | nindent 4 }}
{{- end }}