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

[master] Keep CRDs when deleting a Bundle #2028

Merged
merged 3 commits into from
Jan 4, 2024

Conversation

raulcabello
Copy link
Contributor

Just delete CRDs if deleteCRDResources is set to true in the fleet.yaml. Otherwise CRDs are kept in the cluster.

This PR adds the helm.sh/resource-policy annotation for CRDs if deleteCRDResources is false or not set. This will prevent helm from deleting CRDs when a Bundle is deleted.

Refers to #1978

@raulcabello raulcabello requested a review from a team as a code owner December 19, 2023 09:06
@raulcabello raulcabello changed the title Don't delete CRD resources [master] Keep CRDs when deleting a Bundle Dec 19, 2023
weyfonk
weyfonk previously approved these changes Dec 19, 2023
aruiz14
aruiz14 previously approved these changes Dec 19, 2023
Just delete CRDs if deleteCRDResources is set to true in the fleet.yaml

Add the helm.sh/resource-policy annotation for
CRDs if deleteCRDResources is false or not set. This will prevent helm from deleting CRDs when a Bundle is deleted

Signed-off-by: raul <raul.cabello@suse.com>
Signed-off-by: raul <raul.cabello@suse.com>
Signed-off-by: raul <raul.cabello@suse.com>
@raulcabello raulcabello merged commit da5ae62 into rancher:master Jan 4, 2024
9 checks passed
@raulcabello raulcabello deleted the remove-crds branch January 4, 2024 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants