carvel-dev / kapp

kapp is a simple deployment tool focused on the concept of "Kubernetes application" — a set of resources with the same label
https://carvel.dev/kapp
Apache License 2.0
899 stars 108 forks source link

Use kapp config to orphan delete resources #562

Open praveenrewar opened 2 years ago

praveenrewar commented 2 years ago

Describe the problem/challenge you have Currently if we want to remove resources from a kapp app, we have to either manually remove the kapp labels from the app or first add the orphan-delete strategy annotation to the resources and then delete them, thus requiring 2 deploys.

Describe the solution you'd like We would want a way to specify which resources to be orphan deleted using the kapp config. This would help us in removing resources from a app in one deploy command only.

Anything else you would like to add: This would be beneficial when a resource present in a package needs to be removed from the package (but not from the cluster) in a subsequent version of a package.


Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible" 👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

rohitagg2020 commented 2 years ago

Add an example so that it will be easy to triage when somebody picks it up