helm-charts/pypiserver/templates/secret.yaml
2021-01-17 04:09:41 +03:00

16 lines
463 B
YAML

apiVersion: v1
kind: Secret
type: Opaque
stringData:
.htpasswd: |-
{{- range $key, $value := .Values.auth.credentials }}
{{ $key }}:{{ $value }}
{{- end }}
metadata:
name: {{ template "pypiserver.fullname" . }}
labels:
app.kubernetes.io/name: {{ template "pypiserver.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}