Skip to content

Commit

Permalink
helm: Add validation rule for Envoy L7 Load Balancer
Browse files Browse the repository at this point in the history
This is to ensure that proxy must be enabled if Envoy L7 Load balancer
feature is enabled.

Signed-off-by: Tam Mach <tam.mach@cilium.io>
  • Loading branch information
sayboras committed Aug 22, 2023
1 parent 437df5e commit 2b7caae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/kubernetes/cilium/templates/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
{{- end }}
{{- end }}

{{- if or .Values.ingressController.enabled .Values.gatewayAPI.enabled }}
{{- if or .Values.ingressController.enabled .Values.gatewayAPI.enabled (eq .Values.loadBalancer.l7.backend "envoy") }}
{{- if hasKey .Values "l7Proxy" }}
{{- if not .Values.l7Proxy }}
{{ fail "Ingress or Gateway API controller requires .Values.l7Proxy to be set to 'true'" }}
{{ fail "Ingress or Gateway API controller or Envoy L7 Load Balancer requires .Values.l7Proxy to be set to 'true'" }}
{{- end }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit 2b7caae

Please sign in to comment.