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

Introduce the ability to remove all the components of a manifest based deployment #5715

Closed
huib-portainer opened this issue Sep 23, 2021 · 0 comments · Fixed by #5548
Closed
Milestone

Comments

@huib-portainer
Copy link
Contributor

Is your feature request related to a problem? Please describe.
It’s common to delete multiple objects defined in a manifest, rather than only removing the Deployment, e.g.
kubectl delete -f https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.5.0/components.yaml

Because a manifest can create more than what can be managed in Kubernetes (cluster objects, Role, RoleBindings, ServiceAccounts…), when removing an application from Portainer this will leave some orphaned objects inside the cluster.

Describe the solution you'd like
When removing a stack from the Stacks tab, remove all associated workloads.
image

But when deleting the Deployments from the applications list, it may leave workloads behind (like services etc).
So for it to work correctly (i.e. leave nothing behind), the user has to delete the Stack.

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

Successfully merging a pull request may close this issue.

1 participant