Namespace Finalizers Preventing Deletion in Clusters Step
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 7
- Forks
- 2
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 3
Description
Summary
Kubernetes namespace finalizers are blocking namespace deletion during the clusters step, even though the namespaces appear to be empty.
Affected Namespaces
ptd-controller-systemgrafana
Context
- Step:
clusters - Operation: Delete namespace
- Blocker: Finalizers preventing deletion
Symptoms
- Namespace deletion hangs or times out
- Running
kubectl get all -n ptd-controller-systemshows: "No resources found in the ptd-controller-system namespace" - Despite appearing empty, the namespace cannot be deleted
Investigation Findings
- Namespaces appear empty when checking standard resources
- The issue may be related to namespace-scoped Custom Resource Definitions (CRDs)
- CRDs may have finalizers that aren't being properly cleaned up
- Resources may exist that aren't returned by
kubectl get all
Notes
This may not be worth a comprehensive fix if:
- It only affects initial migration or rare teardown scenarios
- Manual intervention once is acceptable
- The issue won't recur during normal operations
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the clusters-step namespace deletion for ptd-controller-system and grafana, then inspect namespace-scoped resources and their finalizers beyond kubectl get all. Done means the affected namespaces delete reliably without manual intervention, or the issue is documented as an accepted teardown limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes
- Domain
- infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100