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 }}