Skip to content

Commit

Permalink
Update PolicyExceptionDraft CRD
Browse files Browse the repository at this point in the history
  • Loading branch information
fhielpos committed Sep 28, 2023
1 parent 90d1fa5 commit fa7ffe2
Showing 1 changed file with 21 additions and 36 deletions.
57 changes: 21 additions & 36 deletions helm/exception-recommender/crd/policyexceptiondraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ spec:
kind: PolicyExceptionDraft
listKind: PolicyExceptionDraftList
plural: policyexceptiondrafts
singular: policyexceptiondraft
shortNames:
- polexdraft
- polexdraft
singular: policyexceptiondraft
scope: Namespaced
versions:
- name: v1alpha1
Expand All @@ -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 <namespace>/<name>
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
Expand Down

0 comments on commit fa7ffe2

Please sign in to comment.