From 7b22188e41fb82010dfb515859a6f40425bbef12 Mon Sep 17 00:00:00 2001 From: hongming Date: Wed, 23 Apr 2025 11:16:30 +0800 Subject: [PATCH] refactor: update ks-console-config.yaml use dynamic configuration values (#6488) Signed-off-by: hongming --- config/ks-core/templates/ks-console-config.yaml | 8 +++++--- config/ks-core/values.yaml | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config/ks-core/templates/ks-console-config.yaml b/config/ks-core/templates/ks-console-config.yaml index 824c20838..b8cb7bec3 100644 --- a/config/ks-core/templates/ks-console-config.yaml +++ b/config/ks-core/templates/ks-console-config.yaml @@ -22,13 +22,15 @@ data: {{- else }} url: http://ks-apiserver wsUrl: ws://ks-apiserver - {{ end }} + {{- end }} client: version: kubesphere: {{ .Chart.AppVersion }} kubernetes: {{ .Capabilities.KubeVersion.Version }} - enableKubeConfig: true - enableNodeListTerminal: {{ .Values.console.config.enableNodeListTerminal }} + isWarningHeaderNotificationEnabled: {{ not (or (empty .Values.experimental.validationDirective) (eq .Values.experimental.validationDirective "Ignore")) }} + {{- with .Values.console.config }} + {{- toYaml . | nindent 6 }} + {{- end }} kind: ConfigMap metadata: name: ks-console-config \ No newline at end of file diff --git a/config/ks-core/values.yaml b/config/ks-core/values.yaml index 7c8092d3e..e94c64634 100644 --- a/config/ks-core/values.yaml +++ b/config/ks-core/values.yaml @@ -161,6 +161,7 @@ console: digest: "" pullPolicy: IfNotPresent config: + enableKubeConfig: true enableNodeListTerminal: true ## @param containerPorts [array] List of container ports to enable in the ks-console container ##