Skip to content

Commit f2863f8

Browse files
committed
fix passwordExistingSecretName
1 parent 4e24a2f commit f2863f8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

helm/yatai-image-builder/templates/secret-env.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ stringData:
1515
DOCKER_REGISTRY_SERVER: {{ .Values.dockerRegistry.server | quote }}
1616
DOCKER_REGISTRY_IN_CLUSTER_SERVER: {{ .Values.dockerRegistry.inClusterServer | quote }}
1717
DOCKER_REGISTRY_USERNAME: {{ .Values.dockerRegistry.username | quote }}
18-
DOCKER_REGISTRY_PASSWORD: {{ default null (.Values.dockerRegistry.password | quote) }}
18+
{{- if .Values.dockerRegistry.passwordExistingSecretName }}
19+
DOCKER_REGISTRY_PASSWORD: {{ .Values.dockerRegistry.password | quote }}
20+
{{- else }}
21+
DOCKER_REGISTRY_PASSWORD: null
22+
{{- end }}
1923
DOCKER_REGISTRY_SECURE: {{ .Values.dockerRegistry.secure | quote }}
2024
DOCKER_REGISTRY_BENTO_REPOSITORY_NAME: {{ .Values.dockerRegistry.bentoRepositoryName | quote }}
2125

0 commit comments

Comments
 (0)