Skip to content

Commit

Permalink
add root_namespace property to cm and defaults it to istio-system whe…
Browse files Browse the repository at this point in the history
…n not set (#114)
  • Loading branch information
leandroberetta authored Nov 2, 2021
1 parent 6726500 commit 908d7c1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions kiali-server/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,14 @@ Determine the auth strategy to use - default is "token" on Kubernetes and "opens
{{- end }}
{{- end }}
{{- end }}

{{/*
Determine the root namespace - default is where Kiali is installed.
*/}}
{{- define "kiali-server.external_services.istio.root_namespace" -}}
{{- if .Values.external_services.istio.root_namespace }}
{{- .Values.external_services.istio.root_namespace }}
{{- else }}
{{- .Release.Namespace }}
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions kiali-server/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ data:
{{- $_ := set $cm.identity "cert_file" (include "kiali-server.identity.cert_file" .) }}
{{- $_ := set $cm.identity "private_key_file" (include "kiali-server.identity.private_key_file" .) }}
{{- $_ := set $cm.login_token "signing_key" (include "kiali-server.login_token.signing_key" .) }}
{{- $_ := set $cm.external_services.istio "root_namespace" (include "kiali-server.external_services.istio.root_namespace" .) }}
{{- $_ := set $cm.server "web_root" (include "kiali-server.server.web_root" .) }}
{{- toYaml $cm | nindent 4 }}
...
2 changes: 2 additions & 0 deletions kiali-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ deployment:
external_services:
custom_dashboards:
enabled: true
istio:
root_namespace: ""

identity: {}
#cert_file:
Expand Down

0 comments on commit 908d7c1

Please sign in to comment.