Skip to content

Commit

Permalink
Add validation to ensure l7proxy cannot be disabled when Ingress is e…
Browse files Browse the repository at this point in the history
…nabled

Signed-off-by: Nick Young <nick@isovalent.com>
  • Loading branch information
youngnick authored and joestringer committed May 4, 2023
1 parent 718f180 commit ea404cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions install/kubernetes/cilium/templates/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@
{{- end }}
{{- end }}

{{- if or .Values.ingressController.enabled .Values.gatewayAPI.enabled }}
{{- if hasKey .Values "l7proxy" }}
{{- if not .Values.l7proxy }}
{{ fail "Ingress or Gateway API controller requires .Values.l7proxy to be set to 'true'" }}
{{- end }}
{{- end }}
{{- end }}

{{- if or .Values.ingressController.enabled .Values.gatewayAPI.enabled }}
{{- if hasKey .Values "kubeProxyReplacement" }}
{{- if and (ne .Values.kubeProxyReplacement "partial") (ne .Values.kubeProxyReplacement "strict") }}
Expand Down

0 comments on commit ea404cf

Please sign in to comment.