-
Notifications
You must be signed in to change notification settings - Fork 239
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
Feature Request: delete namespace when bundle is deleted #1564
Comments
Followups before we close this issue:
QA Testing Considerations:
|
Testing enviroment: Rancher version: Scenario 1: Test namespace deletion using fleet.yaml with defaultNamespace defined and later editing file to add
|
About Scenario 2 before, it turned out there was an error on my file. Here, we are performing a nested GitRepo on ui, so 2 Gitrepos are created and one must be set to a namespace (in this case one of them linked to kind: GitRepo
apiVersion: fleet.cattle.io/v1alpha1
metadata:
name: my-gitrepo
namespace: fleet-local
spec:
targetNamespace: my-custom-namespace
repo: https://github.com/rancher/fleet-test-data
deleteNamespace: true
paths:
- helm-verify So basically the ui will look like this Once the parent main gitRepo is deleted, I confirmed the namespace is deleted as well. So it seems working ok in 2.9, Clossing issue. |
Is your feature request related to a problem?
Hi all, it would be awesome if there was a way to cleanup also the namespace where a bundle was deployed.
I see in the past there was a
prune
option for theGitRepo
which is not available anymore.keepResources = false
instead deletes the actual resources but preserves the namespace where the resources were deployed to.Maybe I'm missing something from the docs?
Otherwise it would be great to have the possibility to cleanup the namespace as well.
Solution you'd like
An option to delete also the namespace when a bundle is deleted.
Alternatives you've considered
Manually cleanup namespaces after deleting bundles.
Anything else?
No response
The text was updated successfully, but these errors were encountered: