2021-08-26 13:00:03 +00:00
|
|
|
{{- define "_ingress" }}
|
|
|
|
enabled: {{ .enabled }}
|
|
|
|
{{- with .gateway }}
|
|
|
|
gateways:
|
|
|
|
istio-ingressgateway:
|
|
|
|
{{- toYaml . | nindent 6 }}
|
|
|
|
{{- end }}
|
|
|
|
certificates:
|
|
|
|
{{- with .dnsNames }}
|
|
|
|
- name: ingress-cert
|
|
|
|
dnsNames:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- range $cert := .certificates }}
|
|
|
|
- name: {{ $cert.name }}
|
|
|
|
dnsNames:
|
|
|
|
{{- toYaml $cert.dnsNames | nindent 4 }}
|
|
|
|
{{- end }}
|
2021-08-27 10:22:36 +00:00
|
|
|
proxyProtocol: {{ default true .proxyProtocol }}
|
2021-08-26 13:00:03 +00:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
|
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 }}
|
|
|
|
|
2021-08-26 13:00:03 +00:00
|
|
|
{{- with index .Values "istio-ingress" "public" }}
|
2020-11-26 13:21:10 +00:00
|
|
|
istio-ingress:
|
2021-04-22 13:43:10 +00:00
|
|
|
telemetry:
|
2021-08-26 13:00:03 +00:00
|
|
|
enabled: {{ $.Values.metrics.enabled }}
|
|
|
|
{{- include "_ingress" . | nindent 2 }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- with index .Values "istio-ingress" "private" }}
|
2020-11-26 13:21:10 +00:00
|
|
|
istio-private-ingress:
|
2021-04-22 13:43:10 +00:00
|
|
|
telemetry:
|
2021-08-26 13:00:03 +00:00
|
|
|
enabled: {{ $.Values.metrics.enabled }}
|
|
|
|
{{- include "_ingress" . | nindent 2 }}
|
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" . }}
|