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 Helm support for the --deletion-policy CLI arg #388

Merged
merged 2 commits into from
Jan 10, 2023

Conversation

RedbackThomson
Copy link
Contributor

Description of changes:
Adds a new value in values.yaml named deletionPolicy to support the controller CLI argument --deletion-policy. Supports values of delete and retain

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ack-bot ack-bot requested review from a-hilaly and vijtrip2 January 6, 2023 21:34
@RedbackThomson
Copy link
Contributor Author

/hold
Requires release of aws-controllers-k8s/runtime#107 and a runtime version update

@ack-bot ack-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 6, 2023
@@ -203,6 +203,10 @@
"pattern": "(^$|^.*=.*$)"
}
},
"deletionPolicy": {
"type": "string",
"enum": ["delete", "retain"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this enum is already enforced by the runtime here, what do you think about just making this a free-form string so that there is one fewer place where an enum needs to be updated if the values ever change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I want this here because I'd like the client-side Helm validation to fail if they try to add anything other than those values. Otherwise they would have to check the controller pod logs to understand what went wrong

@jljaco
Copy link
Contributor

jljaco commented Jan 10, 2023

/lgtm

@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label Jan 10, 2023
Copy link
Collaborator

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

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

👍

@ack-bot ack-bot removed the lgtm Indicates that a PR is ready to be merged. label Jan 10, 2023
@RedbackThomson
Copy link
Contributor Author

/unhold
Updated with the latest runtime v0.22.1

@ack-bot ack-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 10, 2023
@RedbackThomson RedbackThomson changed the title Add Helm support for the --deletion-policy CLI arg Add Helm support for the --deletion-policy CLI arg Jan 10, 2023
@jaypipes
Copy link
Collaborator

/lgtm

@ack-bot
Copy link
Collaborator

ack-bot commented Jan 10, 2023

@jaypipes: changing LGTM is restricted to collaborators

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ack-bot
Copy link
Collaborator

ack-bot commented Jan 10, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jaypipes, jljaco, RedbackThomson

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:
  • OWNERS [RedbackThomson,jljaco]

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

@ack-bot
Copy link
Collaborator

ack-bot commented Jan 10, 2023

/lgtm

@ack-bot ack-bot self-assigned this Jan 10, 2023
@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label Jan 10, 2023
@ack-bot ack-bot merged commit 1b20baf into aws-controllers-k8s:main Jan 10, 2023
@RedbackThomson RedbackThomson deleted the deletion-policy branch January 10, 2023 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants