From 71297fdb11472d2860f3ab9898348b139e1ad16b Mon Sep 17 00:00:00 2001 From: Shengwen Yu Date: Wed, 29 Nov 2023 14:07:51 +0800 Subject: [PATCH] fix: add REGISTRY_HTTP_SECRET env for registry if .Values.registry.existingSecret is set Signed-off-by: Shengwen Yu --- templates/registry/registry-dpl.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/registry/registry-dpl.yaml b/templates/registry/registry-dpl.yaml index 22b5b789a..1aa6a4d6e 100644 --- a/templates/registry/registry-dpl.yaml +++ b/templates/registry/registry-dpl.yaml @@ -95,6 +95,13 @@ spec: name: {{ .Values.persistence.imageChartStorage.s3.existingSecret }} {{- end }} env: + {{- if .Values.registry.existingSecret }} + - name: REGISTRY_HTTP_SECRET + valueFrom: + secretKeyRef: + name: {{ .Values.registry.existingSecret }} + key: {{ .Values.registry.existingSecretKey }} + {{- end }} {{- if has "registry" .Values.proxy.components }} - name: HTTP_PROXY value: "{{ .Values.proxy.httpProxy }}"