Skip to content

Commit

Permalink
helm: Check EndpointCRD is enabled when CiliumEndpointSlice is enable…
Browse files Browse the repository at this point in the history
…d too

This commit adds a supplementary check during the deployment to prevent
installing Cilium with incompatibles flags enableCiliumEndpointSlice=true
disableEndpointCRD=true.

Signed-off-by: Donia Chaiehloudj <donia.cld@isovalent.com>
  • Loading branch information
doniacld authored and dylandreimerink committed Jun 8, 2023
1 parent c6bc4d6 commit 9fab23d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions install/kubernetes/cilium/templates/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,10 @@
{{ fail "SPIRE installation requires .Values.auth.mTLS.enabled=true and .Values.auth.mTLS.spire.enabled=true" }}
{{- end }}
{{- end }}

{{/* validate Cilium operator */}}
{{- if eq .Values.enableCiliumEndpointSlice true }}
{{- if eq .Values.disableEndpointCRD true }}
{{ fail "if Cilium Endpoint Slice is enabled (.Values.enableCiliumEndpointSlice=true), it requires .Values.disableEndpointCRD=false" }}
{{- end }}
{{- end }}

0 comments on commit 9fab23d

Please sign in to comment.