github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/kiali-server/templates/configmap.yaml (about) 1 --- 2 apiVersion: v1 3 kind: ConfigMap 4 metadata: 5 name: {{ include "kiali-server.fullname" . }} 6 namespace: {{ .Release.Namespace }} 7 labels: 8 {{- include "kiali-server.labels" . | nindent 4 }} 9 {{- if .Values.deployment.configmap_annotations }} 10 annotations: 11 {{- toYaml .Values.deployment.configmap_annotations | nindent 4 }} 12 {{- end }} 13 data: 14 config.yaml: | 15 {{- /* Most of .Values is simply the ConfigMap - strip out the keys that are not part of the ConfigMap */}} 16 {{- $cm := omit .Values "nameOverride" "fullnameOverride" "kiali_route_url" }} 17 {{- /* The helm chart defines namespace for us, but pass it to the ConfigMap in case the server needs it */}} 18 {{- $_ := set $cm.deployment "namespace" .Release.Namespace }} 19 {{- /* Some values of the ConfigMap are generated, but might not be identical, from .Values */}} 20 {{- $_ := set $cm "istio_namespace" (include "kiali-server.istio_namespace" .) }} 21 {{- $_ := set $cm.auth "strategy" (include "kiali-server.auth.strategy" .) }} 22 {{- $_ := set $cm.auth.openshift "client_id_prefix" (include "kiali-server.fullname" .) }} 23 {{- $_ := set $cm.deployment "instance_name" (include "kiali-server.fullname" .) }} 24 {{- $_ := set $cm.identity "cert_file" (include "kiali-server.identity.cert_file" .) }} 25 {{- $_ := set $cm.identity "private_key_file" (include "kiali-server.identity.private_key_file" .) }} 26 {{- $_ := set $cm.login_token "signing_key" (include "kiali-server.login_token.signing_key" .) }} 27 {{- $_ := set $cm.external_services.istio "root_namespace" (include "kiali-server.external_services.istio.root_namespace" .) }} 28 {{- $_ := set $cm.server "web_root" (include "kiali-server.server.web_root" .) }} 29 {{- toYaml $cm | nindent 4 }} 30 ...