UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 5c487134 authored by Christopher Kyle Galloway's avatar Christopher Kyle Galloway :monkey:
Browse files

fix: Remove ingress gateways from more places

parent 71accffe
No related branches found
No related tags found
1 merge request!4540fix: Remove ingress gateways from more places
Pipeline #3389004 passed with warnings
......@@ -88,12 +88,13 @@ ingressGateways:
{{- end }}
{{- range $name, $values := .Values.istio.ingressGateways }}
{{ if ne $values.enabled false }}
{{ $name | nindent 2 }}:
{{- toYaml (merge (dict "k8s" $values.kubernetesResourceSpec) (fromYaml (include "istio.ingressgateway.k8s" $values))) | nindent 4 }}
{{- if $values.extraLabels }}
{{- toYaml (dict "extraLabels" $values.extraLabels) | nindent 4 }}
{{- end}}
enabled: {{ ne $values.enabled false }}
{{- end }}
{{- end }}
{{- if .Values.istio.gateways }}
......@@ -101,6 +102,7 @@ gateways:
main: null
{{- end }}
{{- range $name, $values := .Values.istio.gateways }}
{{ if ne $values.enabled false }}
{{ $name | nindent 2 }}:
selector:
app: {{ $values.ingressGateway }}
......@@ -166,7 +168,7 @@ gateways:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- define "istio.ingressgateway.k8s" -}}
......
......@@ -16,7 +16,7 @@ istio:
enabled: {{ .Values.istio.enabled }}
hardened:
monitoring:
enabled: {{ .Values.monitoring.enabled }}
enabled: {{ .Values.monitoring.enabled }}
kiali:
gateways:
- istio-system/{{ default "public" .Values.kiali.ingress.gateway }}
......@@ -97,15 +97,19 @@ cr:
is_core: true
is_proxy: false
{{- range $name, $values := .Values.istio.ingressGateways }}
{{ if ne $values.enabled false }}
- app_label: {{ $name }}
is_core: true
is_proxy: true
{{- end }}
{{- end }}
{{- range $name, $values := .Values.istio.values.ingressGateways }}
{{ if ne $values.enabled false }}
- app_label: {{ $name }}
is_core: true
is_proxy: true
{{- end }}
{{- end }}
api:
namespaces:
# bigbang watches all!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment