{{- if and .Values.publishAuth.create .Values.publishAuth.htpasswdUsers }} apiVersion: v1 kind: Secret metadata: name: git-pages-publish-auth labels: {{- include "git-pages.componentLabels" . | nindent 4 }} type: Opaque stringData: users: | {{ .Values.publishAuth.htpasswdUsers }} {{- end }}