posit-dev / posit-dev/ptd

Namespace Finalizers Preventing Deletion in Clusters Step

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

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-system
  • grafana

Context

  • Step: clusters
  • Operation: Delete namespace
  • Blocker: Finalizers preventing deletion

Symptoms

  1. Namespace deletion hangs or times out
  2. Running kubectl get all -n ptd-controller-system shows: "No resources found in the ptd-controller-system namespace"
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.