diff --git a/definitions/install.yaml b/definitions/install.yaml index 8e83c014cd..34f3ba78c5 100644 --- a/definitions/install.yaml +++ b/definitions/install.yaml @@ -21,7 +21,16 @@ spec: spec: required: - rules + # set as required, as we cannot set default yet. check below for more details + - mode properties: + mode: + type: string + # default can only be set if CustomResourceDefaulting feature gate is enabled + # default: blockChanges + enum: + - blockChanges + - reportViolation rules: type: array items: @@ -177,7 +186,7 @@ spec: serviceAccountName: kyverno-service-account containers: - name: kyverno - image: nirmata/kyverno:latest + image: nirmata/kyverno:dev-testing args: ["--filterKind","Nodes,Events,APIService,SubjectAccessReview"] ports: - containerPort: 443 diff --git a/definitions/install_debug.yaml b/definitions/install_debug.yaml index 313c348b65..f136f80978 100644 --- a/definitions/install_debug.yaml +++ b/definitions/install_debug.yaml @@ -21,7 +21,16 @@ spec: spec: required: - rules + # set as required, as we cannot set default yet. check below for more details + - mode properties: + mode: + type: string + # default can only be set if CustomResourceDefaulting feature gate is enabled + # default: blockChanges + enum: + - blockChanges + - reportViolation rules: type: array items: