Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add description for pruneObjectBehavior #79

Merged
merged 1 commit into from
Nov 11, 2022
Merged

Add description for pruneObjectBehavior #79

merged 1 commit into from
Nov 11, 2022

Conversation

gparvin
Copy link
Member

@gparvin gparvin commented Nov 10, 2022

Adding a description to the pruning parameter in the CRD

Refs:

Signed-off-by: Gus Parvin gparvin@redhat.com

@gparvin
Copy link
Member Author

gparvin commented Nov 10, 2022

/hold

@@ -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 clean up resources that are created by the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we use the term objects in the ConfigurationPolicy API:

Suggested change
// PruneObjectBehavior is used to clean up resources that are created by the
// PruneObjectBehavior is used to remove objects that are manage by the

@@ -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 clean up resources that are created by the
// policy. Values: DeleteAll, DeleteIfCreated, or None (default)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the values come up nicely with kubectl explain since the enum is set.

Suggested change
// policy. Values: DeleteAll, DeleteIfCreated, or None (default)
// policy upon policy deletion.

@@ -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 created by the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// PruneObjectBehavior is used to remove objects that are created by the
// PruneObjectBehavior is used to remove objects that are managed by the

Adding a description to the pruning parameter in the CRD

Refs:
 - stolostron/backlog#26528

Signed-off-by: Gus Parvin <gparvin@redhat.com>
@openshift-ci
Copy link

openshift-ci bot commented Nov 10, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gparvin, mprahl

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gparvin
Copy link
Member Author

gparvin commented Nov 11, 2022

/unhold

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants