enhancement: disable redis when running as member cluster

Signed-off-by: wenhaozhou <wenhaozhou@yunify.com>
This commit is contained in:
Wenhao Zhou
2024-10-23 15:15:59 +08:00
committed by wenhaozhou
parent 299c0d46db
commit 4fa4f5b42d
2 changed files with 3 additions and 1 deletions

View File

@@ -73,7 +73,7 @@ data:
telemetry:
ksCloudURL: "https://kubesphere.cloud"
{{- end }}
{{- if .Values.ha.enabled -}}
{{- if and (eq (include "role" .) "host" .Values.ha.enabled) -}}
{{- if .Values.ha.cache }}
cache: {{- toYaml .Values.ha.cache | nindent 6}}
{{- else }}

View File

@@ -1,3 +1,4 @@
{{- if eq (include "role" .) "host" }}
{{- if and .Values.ha.enabled (not .Values.ha.cache) }}
{{- if lookup "v1" "Secret" "kubesphere-system" "redis-secret" }}
{{- lookup "v1" "Secret" "kubesphere-system" "redis-secret" | toYaml }}
@@ -146,3 +147,4 @@ spec:
{{- end }}
{{- end }}
{{- end }}