Use kapp config to orphan delete resources
- Dominant language
- Go
- Stars
- 1.1k
- Forks
- 134
- PR merge metrics
- No merged PRs in 30d
Description
**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.
Contributor guide
Research direction
No source files or tests are named. Start by tracing how kapp config is read and how resource deletion and orphan-delete annotations are handled. Done means a single deploy can identify resources to orphan-delete while leaving them in the cluster, including when they are removed from a package.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes
- Domain
- cli, devops
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100