Skip to content

feat: Support namespace-scoped hosted control planes and safe cleanup - #27

Open
RiRa12621 wants to merge 2 commits into
stackitcloud:mainfrom
RiRa12621:feat/hypershift-workers
Open

RiRa12621 wants to merge 2 commits into
stackitcloud:mainfrom
RiRa12621:feat/hypershift-workers

Conversation

@RiRa12621

Copy link
Copy Markdown
Collaborator

CAPSTK needs namespace-scoped operation when each HyperShift control plane runs its own provider. Add --namespace and --leader-election-namespace, validate their values, scope the manager cache, and honor the externally managed infrastructure contract. Add regression coverage proving that raw Ignition reaches STACKIT user data unchanged apart from the SDK's single base64 encoding.

Deletion also needs to survive credential rotation or accidental Secret removal. Cluster and machine finalizers now remain until credentials recover and cleanup succeeds; machine deletion preserves its scheduled retry. Recovery tests cover missing and malformed credentials and preservation of the user-owned network.

The two commits separate hosted-control-plane support from cleanup safety.

Companion integration to hypershift: RiRa12621/hypershift#1. (needs double checking before opening against upstream)

Validation passed using Go 1.26.1:

  • GOTOOLCHAIN=go1.26.1 GOMAXPROCS=3 make lint-fix —> 0 issues.
  • GOTOOLCHAIN=go1.26.1 GOMAXPROCS=3 make test —> all packages, including local Kubernetes 1.35 envtest, passed; generation, formatting and vet are clean.
    Tests cover namespace cache isolation, external management, Ignition payloads, credential recovery and admission webhooks.
    Live lifecycle validation and compatible RHCOS image validation remain required before production use. Native STACKIT image support depends on the pending feat(providers): add STACKIT provider support coreos/ignition#2328 and feat: add STACKIT provider coreos/afterburn#1307 work.

Signed-off-by: Rick Rackow <rick+github@rackow.io>
Signed-off-by: Rick Rackow <rick+github@rackow.io>
@RiRa12621
RiRa12621 requested review from a team and tuunit September 22, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant