Skip to content

feat(k0s): deploy default ControlPlane instances and unpin dev mode in kiosk console - #201

Closed
mrbobbytables wants to merge 1 commit into
projectbluefin:mainfrom
mrbobbytables:fix/k0s-default-controlplane-manifest
Closed

mrbobbytables wants to merge 1 commit into
projectbluefin:mainfrom
mrbobbytables:fix/k0s-default-controlplane-manifest

Conversation

@mrbobbytables

Copy link
Copy Markdown
Contributor

Summary

Resolves #196 by defining and deploying initial default ControlPlane instances for KubeStellar and unpinning DEV_MODE=true from the kiosk console deployment and contract tests.

Changes

  • Default ControlPlane Manifest: Add files/k0s/manifests/kubestellar/35-default-controlplane.yaml defining:
    • its1 (type: host): Registers and exposes the local k0s hosting cluster via the KubeFlex ControlPlane abstraction.
    • wds1 (type: k8s, backend: shared): Deploys the default Workload Description Space backed by the shared PostgreSQL database.
    • Pre-creates its1-system and wds1-system namespaces.
  • KubeStellar Console Manifest: Omit demo environment variables (DEV_MODE, ALLOW_DEV_MODE_IN_CLUSTER, DEV_USER_LOGIN) from files/k0s/manifests/kubestellar/40-kubestellar-console.yaml to ensure production OAuth and local control plane discovery are honored per design spec.
  • Contract Tests:
    • Invert contract assertions in tests/unit/test_kubestellar_kiosk.py to ensure demo mode is excluded from the console deployment.
    • Extend tests/unit/test_k0s_manifests.py to validate 35-default-controlplane.yaml presence and ControlPlane definitions.

— hive: backend=copilot model=gemini-3.8-flash

🐝 Hive Agent: contributor | SHA: e4b0b2f

…n kiosk console

Define initial default ControlPlane resources in files/k0s/manifests/kubestellar/35-default-controlplane.yaml for its1 (type: host, exposing the local k0s hosting cluster) and wds1 (type: k8s, backend: shared) so real workloads and control planes are discovered on first boot.

Omit DEV_MODE, ALLOW_DEV_MODE_IN_CLUSTER, and DEV_USER_LOGIN from files/k0s/manifests/kubestellar/40-kubestellar-console.yaml.

Invert test_kubestellar_kiosk contract assertions to ensure demo mode is excluded and OAuth secret configuration is preserved. Update test_k0s_manifests to validate the default ControlPlane manifest.

Fixes projectbluefin#196

Assisted-by: Gemini 3.8 Flash via GitHub Copilot

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: mrbobbytables <mrbobbytables@users.noreply.github.com>
@castrojo

Copy link
Copy Markdown
Contributor

Closing as superseded by #210.

`files/k0s/manifests/kubestellar/` is deleted. Both halves of this PR are carried forward:

  • Default ControlPlane instances → `files/cluster/manifests/controlplanes/controlplanes.yaml`.
  • `DEV_MODE` unpinned → `files/cluster/manifests/console/kustomization.yaml` drops `DEV_MODE`, `ALLOW_DEV_MODE_IN_CLUSTER` and `DEV_USER_LOGIN` from the console deployment, and the contract tests assert their absence.

Same fix, new paths. Thanks.

@castrojo castrojo closed this Sep 20, 2026
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.

tech-debt(k0s): test_kubestellar_kiosk pins DEV_MODE=true and no live ControlPlane instance is deployed

2 participants