Merge pull request #6260 from zhou1203/disable-redis

enhancement: disable redis when running as member cluster
This commit is contained in:
KubeSphere CI Bot
2024-11-01 12:27:08 +08:00
committed by GitHub
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 }}