1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00

adding PolicyExceptions in crds

Signed-off-by: Sanskarzz <sanskar.gur@gmail.com>
This commit is contained in:
Sanskarzz 2024-01-26 14:14:49 +05:30
parent d09561f247
commit 4f59c94a17
2 changed files with 9 additions and 0 deletions

View file

@ -34,4 +34,7 @@ type Test struct {
// Values are the values to be used in the test // Values are the values to be used in the test
Values *ValuesSpec `json:"values,omitempty"` Values *ValuesSpec `json:"values,omitempty"`
// Policy Exceptions are the policy exceptions to be used in the test
PolicyExceptions []string `json:"exceptions,omitempty"`
} }

View file

@ -24,6 +24,12 @@ spec:
of an object. Servers should convert recognized schemas to the latest 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' internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string type: string
exceptions:
description: Policy Exceptions are the policy exceptions to be used in
the test
items:
type: string
type: array
kind: kind:
description: 'Kind is a string value representing the REST resource this description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client object represents. Servers may infer this from the endpoint the client