From 894a01364774935ade118b44309c061cc1380b2d Mon Sep 17 00:00:00 2001 From: mason Date: Thu, 2 Jan 2025 10:51:36 +0800 Subject: [PATCH] Fixed missing minio secret reference for mirror deploy --- .../charts/csghub/charts/mirror/templates/deployment.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/helm-chart/charts/csghub/charts/mirror/templates/deployment.yaml b/helm-chart/charts/csghub/charts/mirror/templates/deployment.yaml index 053b887..b6d586c 100644 --- a/helm-chart/charts/csghub/charts/mirror/templates/deployment.yaml +++ b/helm-chart/charts/csghub/charts/mirror/templates/deployment.yaml @@ -81,6 +81,10 @@ spec: - secretRef: name: {{ include "common.names.custom" (list . "redis") }} {{- end }} + {{- if .Values.global.minio.enabled }} + - secretRef: + name: {{ include "common.names.custom" (list . "minio") }} + {{- end }} env: - name: STARHUB_SERVER_REDIS_PASSWORD value: "$(REDIS_PASSWD)" @@ -127,6 +131,10 @@ spec: - secretRef: name: {{ include "common.names.custom" (list . "redis") }} {{- end }} + {{- if .Values.global.minio.enabled }} + - secretRef: + name: {{ include "common.names.custom" (list . "minio") }} + {{- end }} env: - name: STARHUB_SERVER_REDIS_PASSWORD value: "$(REDIS_PASSWD)"