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