secret.yaml 334 B

1234567891011121314
  1. {{- if .Values.auth.enabled }}
  2. apiVersion: v1
  3. kind: Secret
  4. metadata:
  5. name: {{ include "registry.fullname" . }}-auth
  6. type: Opaque
  7. stringData:
  8. htpasswd: |
  9. {{- if .Values.auth.htpasswd }}
  10. {{ .Values.auth.htpasswd | indent 4 }}
  11. {{- else }}
  12. {{ (htpasswd .Values.auth.username .Values.auth.password) | indent 4 }}
  13. {{- end }}
  14. {{- end }}