# helm_charts_backup-secret.yaml
{{- if .Values.nexusBackup.enabled }}
apiVersion: v1
kind: Secret
metadata:
  name: {{ template "nexus.fullname" . }}
  labels:
{{ include "nexus.labels" . | indent 4 }}
type: Opaque
data:
  nexus.nexusAdminPassword: {{ printf "%s%s" "Basic " (printf "%s%s" "admin:" .Values.nexusBackup.nexusAdminPassword | b64enc) | cat | b64enc | quote }}
{{- end }}