diff --git a/kiali-server/templates/_helpers.tpl b/kiali-server/templates/_helpers.tpl index 67c7c01..23b4029 100644 --- a/kiali-server/templates/_helpers.tpl +++ b/kiali-server/templates/_helpers.tpl @@ -178,8 +178,8 @@ Returns a JSON dict whose keys are the cluster names and values are the cluster */}} {{- define "kiali-server.remote-cluster-secrets" -}} {{- $theDict := dict }} -{{- if .Values.kiali_feature_flags.clustering.autodetect_secrets.enabled }} - {{- $secretLabelToLookFor := (regexSplit "=" .Values.kiali_feature_flags.clustering.autodetect_secrets.label 2) }} +{{- if .Values.clustering.autodetect_secrets.enabled }} + {{- $secretLabelToLookFor := (regexSplit "=" .Values.clustering.autodetect_secrets.label 2) }} {{- $secretLabelNameToLookFor := first $secretLabelToLookFor }} {{- $secretLabelValueToLookFor := last $secretLabelToLookFor }} {{- range $i, $secret := (lookup "v1" "Secret" .Release.Namespace "").items }} diff --git a/kiali-server/templates/deployment.yaml b/kiali-server/templates/deployment.yaml index 0a21a72..e614333 100644 --- a/kiali-server/templates/deployment.yaml +++ b/kiali-server/templates/deployment.yaml @@ -131,7 +131,7 @@ spec: - name: {{ $key }} mountPath: "/kiali-remote-cluster-secrets/{{ $val }}" {{- end }} - {{- range .Values.kiali_feature_flags.clustering.clusters }} + {{- range .Values.clustering.clusters }} - name: {{ .name }} mountPath: "/kiali-remote-cluster-secrets/{{ .secret_name }}" {{- end }} @@ -174,7 +174,7 @@ spec: secret: secretName: {{ $val }} {{- end }} - {{- range .Values.kiali_feature_flags.clustering.clusters }} + {{- range .Values.clustering.clusters }} - name: {{ .name }} secret: secretName: {{ .secret_name }} diff --git a/kiali-server/values.yaml b/kiali-server/values.yaml index 26cd58b..e491a9d 100644 --- a/kiali-server/values.yaml +++ b/kiali-server/values.yaml @@ -30,6 +30,12 @@ auth: openshift: {} strategy: "" +clustering: + autodetect_secrets: + enabled: true + label: "kiali.io/multiCluster=true" + clusters: [] + deployment: # This only limits what Kiali will attempt to see, but Kiali Service Account has permissions to see everything. # For more control over what the Kial Service Account can see, use the Kiali Operator @@ -98,11 +104,6 @@ kiali_feature_flags: secrets: - cacerts - istio-ca-secret - clustering: - autodetect_secrets: - enabled: true - label: "kiali.io/multiCluster=true" - clusters: [] disabled_features: [] validations: ignore: ["KIA1301"]