mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-30 03:15:05 +00:00
sanity check in parent chart for crd-controller mismatch (#9608)
* samity check in parent chart for crd-controller mismatch Signed-off-by: anushkamittal2001 <anushka@nirmata.com> * shift checks to validate.yaml Signed-off-by: anushkamittal2001 <anushka@nirmata.com> --------- Signed-off-by: anushkamittal2001 <anushka@nirmata.com> Co-authored-by: shuting <shuting@nirmata.com> Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
b532525321
commit
dd46f9eaf0
1 changed files with 19 additions and 0 deletions
|
@ -1,3 +1,22 @@
|
|||
{{- if and (eq .Values.cleanupController.enabled true) (eq .Values.crds.groups.kyverno.cleanuppolicies false) }}
|
||||
{{- fail "CRD cleanuppolicies disabled while cleanupController enabled" }}
|
||||
{{- end }}
|
||||
{{- if and (eq .Values.cleanupController.enabled true) (eq .Values.crds.groups.kyverno.clustercleanuppolicies false) }}
|
||||
{{- fail "CRD clustercleanuppolicies disabled while cleanupController enabled" }}
|
||||
{{- end }}
|
||||
{{- if and (eq .Values.reportsController.enabled true) (eq .Values.crds.groups.wgpolicyk8s.clusterpolicyreports false) }}
|
||||
{{- fail "CRD clusterpolicyreports disabled while reportsController enabled" }}
|
||||
{{- end }}
|
||||
{{- if and (eq .Values.reportsController.enabled true) (eq .Values.crds.groups.wgpolicyk8s.clusterpolicyreports false) }}
|
||||
{{- fail "CRD clusterpolicyreports disabled while reportsController enabled" }}
|
||||
{{- end }}
|
||||
{{- if and (eq .Values.reportsController.enabled true) (eq .Values.crds.groups.kyverno.backgroundscanreports false) }}
|
||||
{{- fail "CRD backgroundscanreports disabled while reportsController enabled" }}
|
||||
{{- end }}
|
||||
{{- if and (eq .Values.reportsController.enabled true) (eq .Values.crds.groups.kyverno.clusterbackgroundscanreports false) }}
|
||||
{{- fail "CRD backgroundscanreports disabled while reportsController enabled" }}
|
||||
{{- end }}
|
||||
|
||||
{{- if hasKey .Values "mode" -}}
|
||||
{{- fail "mode is not supported anymore, please remove it from your release and use admissionController.replicas instead." -}}
|
||||
{{- end -}}
|
||||
|
|
Loading…
Add table
Reference in a new issue