helm-charts/pypiserver/templates/secret.yaml

16 lines
463 B
YAML
Raw Normal View History

2021-01-17 01:09:41 +00:00
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 }}