Lifecycle policy annotations for controller-managed Coder objects

Offen
#151 1 Kommentar 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@ThomasK33 arbeitet bereits daran.

Seit 02.10.2026.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

enhancement

Goal: one shared contract for how controller CRDs that manage Coder objects handle deletion, drift and adoption. Patterns come from AWS Controllers for Kubernetes and Azure Service Operator.

Draft contract:

  • coder.com/deletion-policy: delete or retain.
  • coder.com/reconcile-policy: manage, observe (read only, no writes).
  • Adoption of an existing Coder object only on explicit request.
  • The controller records the Coder ID in status and never creates twice after an ambiguous create.

Open points:

  1. Overlap between retain and a detach-on-delete mode; precedence between object and namespace settings.
  2. A user-written adopt annotation is a request, not proof of ownership. Check identity and tenant before any write or delete.

Delivery: no standalone framework. Each part lands with the first controller resource that needs it.

Owner: maintainer desk.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: medium

Vorherrschende Sprache
Go
Sterne
5
Forks
3
Ø Merge
1 Std. 50 Min.
Gemergte PRs (30 T.)
160

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus coder/coder-k8s

Alle Issues in coder/coder-k8s

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.