secret.yaml 346 B

1234567891011121314
  1. {{- if .Values.envs.secret -}}
  2. apiVersion: v1
  3. kind: Secret
  4. metadata:
  5. name: {{ include "kafka-ui.fullname" . }}
  6. namespace: {{ .Release.Namespace }}
  7. labels:
  8. {{- include "kafka-ui.labels" . | nindent 4 }}
  9. type: Opaque
  10. data:
  11. {{- range $key, $val := .Values.envs.secret }}
  12. {{ $key }}: {{ $val | b64enc | quote }}
  13. {{- end -}}
  14. {{- end}}