KubeZero/charts/kubezero/templates/istio-ingress.yaml

52 lines
1.0 KiB
YAML
Raw Normal View History

{{- define "_ingress" }}
enabled: {{ .enabled }}
{{- with .gateway }}
gateways:
istio-ingressgateway:
{{- toYaml . | nindent 6 }}
{{- end }}
certificates:
{{- with .dnsNames }}
# Legacy to be removed with 1.21 !!
- name: ingress-cert
dnsNames:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- range $cert := .certificates }}
- name: {{ $cert.name }}
dnsNames:
{{- toYaml $cert.dnsNames | nindent 4 }}
{{- end }}
proxyProtocol: {{ default true .proxyProtocol }}
{{- end }}
2020-11-26 13:21:10 +00:00
{{- define "istio-ingress-values" }}
{{- with index .Values "istio-ingress" "global" }}
global:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- with index .Values "istio-ingress" "public" }}
2020-11-26 13:21:10 +00:00
istio-ingress:
telemetry:
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:
telemetry:
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" . }}