From fa7ffe216bdfe808837575287d91532605a177bf Mon Sep 17 00:00:00 2001 From: Franco Date: Thu, 28 Sep 2023 17:33:52 -0300 Subject: [PATCH] Update PolicyExceptionDraft CRD --- .../crd/policyexceptiondraft.yaml | 57 +++++++------------ 1 file changed, 21 insertions(+), 36 deletions(-) diff --git a/helm/exception-recommender/crd/policyexceptiondraft.yaml b/helm/exception-recommender/crd/policyexceptiondraft.yaml index fae0ab5..4208870 100644 --- a/helm/exception-recommender/crd/policyexceptiondraft.yaml +++ b/helm/exception-recommender/crd/policyexceptiondraft.yaml @@ -11,9 +11,9 @@ spec: kind: PolicyExceptionDraft listKind: PolicyExceptionDraftList plural: policyexceptiondrafts - singular: policyexceptiondraft shortNames: - - polexdraft + - polexdraft + singular: policyexceptiondraft scope: Namespaced versions: - name: v1alpha1 @@ -37,51 +37,36 @@ spec: spec: description: PolicyExceptionDraftSpec defines the desired state of PolicyExceptionDraft properties: - exceptions: + policies: + description: Match defines match clause used to check if a resource + applies to the exception + items: + type: string + type: array + targets: description: Exceptions is a list policy/rules to be excluded items: - description: Exception stores infos about a policy and rules + description: Workload defines a PolicyException target properties: - policyName: - description: PolicyName identifies the policy to which the exception - is applied. The policy name uses the format / - unless it references a ClusterPolicy. + kind: type: string - ruleNames: - description: RuleNames identifies the rules to which the exception - is applied. + names: + items: + type: string + type: array + namespaces: items: type: string type: array required: - - policyName - - ruleNames + - kind + - names + - namespaces type: object type: array - match: - description: Match defines match clause used to check if a resource - applies to the exception - properties: - kinds: - items: - type: string - type: array - names: - items: - type: string - type: array - namespaces: - items: - type: string - type: array - required: - - kinds - - names - - namespaces - type: object required: - - exceptions - - match + - policies + - targets type: object type: object served: true