Skip to content

Commit

Permalink
do not attempt to mount a cluster secret if none were provided. (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmazzitelli authored Jun 12, 2024
1 parent fedbdb0 commit 68f5b92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kiali-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,11 @@ spec:
mountPath: "/kiali-remote-cluster-secrets/{{ $val }}"
{{- end }}
{{- range .Values.clustering.clusters }}
{{- if .secret_name }}
- name: {{ .name }}
mountPath: "/kiali-remote-cluster-secrets/{{ .secret_name }}"
{{- end }}
{{- end }}
{{- if .Values.deployment.resources }}
resources:
{{- toYaml .Values.deployment.resources | nindent 10 }}
Expand Down Expand Up @@ -188,10 +190,12 @@ spec:
secretName: {{ $val }}
{{- end }}
{{- range .Values.clustering.clusters }}
{{- if .secret_name }}
- name: {{ .name }}
secret:
secretName: {{ .secret_name }}
{{- end }}
{{- end }}
{{- if or (.Values.deployment.affinity.node) (or (.Values.deployment.affinity.pod) (.Values.deployment.affinity.pod_anti)) }}
affinity:
{{- if .Values.deployment.affinity.node }}
Expand Down

0 comments on commit 68f5b92

Please sign in to comment.