backup-secret.yaml 353 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
{{- 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 }}