secrets.yaml 836 B

12345678910111213141516171819
  1. {{- if not .Values.existingSecret }}
  2. apiVersion: v1
  3. kind: Secret
  4. metadata:
  5. name: {{ include "common.names.fullname" . }}
  6. namespace: {{ .Release.Namespace | quote }}
  7. labels: {{- include "common.labels.standard" . | nindent 4 }}
  8. {{- if .Values.commonLabels }}
  9. {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
  10. {{- end }}
  11. {{- if .Values.commonAnnotations }}
  12. annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
  13. {{- end }}
  14. type: Opaque
  15. data:
  16. {{- if not .Values.existingSecret }}
  17. halo-password: {{ include "common.secrets.passwords.manage" (dict "secret" (include "common.names.fullname" .) "key" "halo-password" "providedValues" (list "haloPassword") "context" $) }}
  18. {{- end }}
  19. {{- end }}