Skip to content

Commit

Permalink
Add description for pruneObjectBehavior
Browse files Browse the repository at this point in the history
Adding a description to the pruning parameter in the CRD

Refs:
 - stolostron/backlog#26528

Signed-off-by: Gus Parvin <gparvin@redhat.com>
  • Loading branch information
gparvin authored and openshift-merge-robot committed Nov 11, 2022
1 parent dfed254 commit 18e33b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion api/v1/configurationpolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ type RemediationAction string
// +kubebuilder:validation:Enum=low;Low;medium;Medium;high;High;critical;Critical
type Severity string

// PruneObjectBehavior : DeleteAll, DeleteIfCreated, or None
// PruneObjectBehavior is used to remove objects that are managed by the
// policy upon policy deletion.
// +kubebuilder:validation:Enum=DeleteAll;DeleteIfCreated;None;
type PruneObjectBehavior string

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ spec:
type: array
pruneObjectBehavior:
default: None
description: 'PruneObjectBehavior : DeleteAll, DeleteIfCreated, or
None'
description: PruneObjectBehavior is used to remove objects that are
managed by the policy upon policy deletion.
enum:
- DeleteAll
- DeleteIfCreated
Expand Down

0 comments on commit 18e33b7

Please sign in to comment.