| apiVersion: v1 |
| kind: Secret |
| metadata: |
| name: {{ .Release.Name }}-git-backend-secret |
| labels: |
| app.kubernetes.io/component: git-backend |
| app.kubernetes.io/instance: {{ .Release.Name }} |
| chart: {{ template "gerrit-replica.chart" . }} |
| heritage: {{ .Release.Service }} |
| release: {{ .Release.Name }} |
| {{- if .Values.additionalLabels }} |
| {{ toYaml .Values.additionalLabels | indent 4 }} |
| {{- end }} |
| data: |
| .htpasswd: {{ required "A .htpasswd-file is required for the git backend." .Values.gitBackend.credentials.htpasswd | b64enc }} |
| type: Opaque |