-
Notifications
You must be signed in to change notification settings - Fork 226
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
Being able to keep resources when gitRepo is deleted #680
Comments
Not sure if it fits here, but my issue here rancher/rancher#35987 causes similar problems... and should not delete anything without a warning/confirmation. Im not sure if manual removal of a label has the same result ? |
This would be massively beneficial for those using 'App of Apps' pattern ( |
This would also be beneficial in case you don't want the resources to get deleted. Image if you're managing CRDs with Fleet and then for some reason you have to make a change to the way you're managing the CRDs, or just wanna stop managing them with Fleet. Deleting the GitRepo would delete all CRDs and all custom resources based on those CRDs... An option to be able to "orphan" the resources and then bind them to another GitRepo would be ideal :) |
I wonder if one could add annotations to resources so Fleet does not delete them (since it is using Helm underneath Tekton). https://helm.sh/docs/howto/charts_tips_and_tricks/#tell-helm-not-to-uninstall-a-resource kind: Secret
metadata:
annotations:
"helm.sh/resource-policy": keep |
@atsai1220 yes you can use the |
@raulcabello ty! We used that annotation on CRDs that are part of the chart and has worked well. This may not work well if CRDs are part of a job generated by the chart. Lastly, we were able to remove the gitrepo and keep the resources by using these manual steps:
|
@kkaempf Need info/design doc for determining QA LOE |
@rancher/qa Additionnal QAProblemThere is no way of keeping all resources created by fleet when a SolutionNew field All Bundles created from a GitRepo will get the TestingEngineering TestingManual Testing
Automated Testing |
SURE-5008, SURE-5925, SURE-4920 |
For existing |
@w13915984028 no.
|
This fix is available for testing in https://github.com/rancher/fleet/releases/tag/v0.7.0-AGENT-rc.1 but not yet available in Rancher RC |
QA TEST PLAN Scenarios
|
Verified first two test cases QE Test Plan in above comment.
TEST RESULT Scenarios
REPRO STEPS Scenario 1
Scenario 2
Scenario 3
|
Today when gitRepo is deleted, assciated bundles and underlying resources are being deleted. This can cause cascading failure if user deletes their gitRepo accidently, or removed their bundles. A possible solution is that we can keep the resource by default when gitRepo/bundle is deleted, and only clean up resources when there is
purge: true
set on gitRepo.The text was updated successfully, but these errors were encountered: