16 lines
653 B
YAML
16 lines
653 B
YAML
|
{{- if not (and .Values.artifactory.admin.secret .Values.artifactory.admin.dataKey) }}
|
||
|
{{- if and .Values.artifactory.admin.password (not .Values.artifactory.unifiedSecretInstallation) }}
|
||
|
kind: Secret
|
||
|
apiVersion: v1
|
||
|
metadata:
|
||
|
name: {{ template "artifactory-ha.fullname" . }}-bootstrap-creds
|
||
|
labels:
|
||
|
app: {{ template "artifactory-ha.name" . }}
|
||
|
chart: {{ template "artifactory-ha.chart" . }}
|
||
|
heritage: {{ .Release.Service }}
|
||
|
release: {{ .Release.Name }}
|
||
|
data:
|
||
|
bootstrap.creds: {{ (printf "%s@%s=%s" .Values.artifactory.admin.username .Values.artifactory.admin.ip .Values.artifactory.admin.password) | b64enc }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|