2020-11-26 13:21:10 +00:00
|
|
|
{{- define "istio-ingress-values" }}
|
2021-04-16 11:41:31 +00:00
|
|
|
|
|
|
|
{{- with index .Values "istio-ingress" "global" }}
|
|
|
|
global:
|
|
|
|
{{- toYaml . | nindent 2 }}
|
|
|
|
{{- end }}
|
|
|
|
|
2020-11-26 13:21:10 +00:00
|
|
|
{{- if index .Values "istio-ingress" "public" }}
|
|
|
|
istio-ingress:
|
|
|
|
enabled: {{ index .Values "istio-ingress" "public" "enabled" }}
|
2021-04-22 13:43:10 +00:00
|
|
|
telemetry:
|
|
|
|
enabled: {{ .Values.metrics.enabled }}
|
2020-11-26 13:21:10 +00:00
|
|
|
{{- with index .Values "istio-ingress" "public" "gateway" }}
|
|
|
|
gateways:
|
|
|
|
istio-ingressgateway:
|
|
|
|
{{- toYaml . | nindent 6 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with index .Values "istio-ingress" "public" "dnsNames" }}
|
2021-06-30 10:37:05 +00:00
|
|
|
# Legacy
|
2020-11-26 13:21:10 +00:00
|
|
|
dnsNames:
|
|
|
|
{{- toYaml . | nindent 2 }}
|
2021-06-30 10:37:05 +00:00
|
|
|
|
|
|
|
certificates:
|
|
|
|
- name: ingress-cert
|
|
|
|
dnsNames:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
# New multi cert gateway
|
|
|
|
{{- range $cert := (index .Values "istio-ingress" "public" "certificates") }}
|
|
|
|
- name: {{ $cert.name }}
|
|
|
|
dnsNames:
|
|
|
|
{{- toYaml $cert.dnsNames | nindent 4 }}
|
2020-11-26 13:21:10 +00:00
|
|
|
{{- end }}
|
2021-06-30 10:37:05 +00:00
|
|
|
proxyProtocol: {{ default false (index .Values "istio-ingress" "public" "proxyProtocol") }}
|
2020-11-26 13:21:10 +00:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- if index .Values "istio-ingress" "private" }}
|
|
|
|
istio-private-ingress:
|
|
|
|
enabled: {{ index .Values "istio-ingress" "private" "enabled" }}
|
2021-04-22 13:43:10 +00:00
|
|
|
telemetry:
|
|
|
|
enabled: {{ .Values.metrics.enabled }}
|
2020-11-26 13:21:10 +00:00
|
|
|
{{- with index .Values "istio-ingress" "private" "gateway" }}
|
|
|
|
gateways:
|
|
|
|
istio-ingressgateway:
|
|
|
|
{{- toYaml . | nindent 6 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with index .Values "istio-ingress" "private" "dnsNames" }}
|
2021-06-30 10:37:05 +00:00
|
|
|
# Legacy
|
2020-11-26 13:21:10 +00:00
|
|
|
dnsNames:
|
|
|
|
{{- toYaml . | nindent 2 }}
|
2021-06-30 10:37:05 +00:00
|
|
|
|
|
|
|
certificates:
|
|
|
|
- name: private-ingress-cert
|
|
|
|
dnsNames:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
# New multi cert gateway
|
|
|
|
{{- range $cert := (index .Values "istio-ingress" "private" "certificates") }}
|
|
|
|
- name: {{ $cert.name }}
|
|
|
|
dnsNames:
|
|
|
|
{{- toYaml $cert.dnsNames | nindent 4 }}
|
2020-11-26 13:21:10 +00:00
|
|
|
{{- end }}
|
2021-06-30 10:37:05 +00:00
|
|
|
proxyProtocol: {{ default false (index .Values "istio-ingress" "private" "proxyProtocol") }}
|
2020-11-26 13:21:10 +00:00
|
|
|
{{- end }}
|
|
|
|
|
2020-11-24 14:44:57 +00:00
|
|
|
{{- end }}
|
2020-11-26 13:21:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{- define "istio-ingress-argo" }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{ include "kubezero-app.app" . }}
|