From 5af27f15391d1af0b3fec88d922f9432772e3aed Mon Sep 17 00:00:00 2001 From: yminer Date: Wed, 25 Oct 2023 00:57:51 +0000 Subject: [PATCH] fix external redis exissting password for registry container Signed-off-by: yminer --- 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 fddba9fa8..b9c97ff89 100644 --- a/templates/registry/registry-dpl.yaml +++ b/templates/registry/registry-dpl.yaml @@ -113,6 +113,13 @@ spec: - name: INTERNAL_TLS_TRUST_CA_PATH value: /etc/harbor/ssl/registry/ca.crt {{- end }} + {{- if .Values.redis.external.existingSecret }} + - name: REGISTRY_REDIS_PASSWORD + valueFrom: + secretKeyRef: + name: {{ .Values.redis.external.existingSecret }} + key: REDIS_PASSWORD + {{- end }} {{- if .Values.persistence.imageChartStorage.azure.existingSecret }} - name: REGISTRY_STORAGE_AZURE_ACCOUNTKEY valueFrom: