{{ if and .Values.secret .Release.IsInstall }} apiVersion: v1 kind: Secret metadata: name: {{ .Release.Name }} annotations: "helm.sh/resource-policy": keep type: generic data: WEBPASSWORD: {{ randAlphaNum 64 | b64enc | quote }} {{ end }}