diff --git a/cmd/cli/kubectl-kyverno/apis/v1alpha1/test.go b/cmd/cli/kubectl-kyverno/apis/v1alpha1/test.go index 19f9e1e059..cd73e257b0 100644 --- a/cmd/cli/kubectl-kyverno/apis/v1alpha1/test.go +++ b/cmd/cli/kubectl-kyverno/apis/v1alpha1/test.go @@ -34,4 +34,7 @@ type Test struct { // Values are the values to be used in the test Values *ValuesSpec `json:"values,omitempty"` + + // Policy Exceptions are the policy exceptions to be used in the test + PolicyExceptions []string `json:"exceptions,omitempty"` } diff --git a/cmd/cli/kubectl-kyverno/config/crds/cli.kyverno.io_tests.yaml b/cmd/cli/kubectl-kyverno/config/crds/cli.kyverno.io_tests.yaml index 43e3639148..d5ae056ea1 100644 --- a/cmd/cli/kubectl-kyverno/config/crds/cli.kyverno.io_tests.yaml +++ b/cmd/cli/kubectl-kyverno/config/crds/cli.kyverno.io_tests.yaml @@ -24,6 +24,12 @@ spec: of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string + exceptions: + description: Policy Exceptions are the policy exceptions to be used in + the test + items: + type: string + type: array kind: description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client