From f60dbd5cadc8542d3a9aeb0e8cc401694e84606d Mon Sep 17 00:00:00 2001 From: "juvenal.diaz" Date: Mon, 2 Nov 2026 12:18:20 -0600 Subject: [PATCH] Expose cluster bootstrap commands through remote API --- cmd/jeannie-server/main.go | 2 +- cmd/jeannie-server/main_test.go | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/cmd/jeannie-server/main.go b/cmd/jeannie-server/main.go index b1ab97e..aaaed43 100644 --- a/cmd/jeannie-server/main.go +++ b/cmd/jeannie-server/main.go @@ -26,7 +26,7 @@ const maxOutputBytes = 1 << 20 // with the public top-level cases in ./jeannie. Internal __up-task and the // recursive remote command are intentionally excluded. var allowedCommands = map[string]bool{ - "help": true, "up": true, "plan": true, + "help": true, "up": true, "plan": true, "cluster": true, "cluster-context": true, "cluster-profile": true, "rebuild-cluster": true, "stop-cluster": true, "start-cluster": true, "cleanup-debian-k8s": true, "shutdown": true, "start": true, diff --git a/cmd/jeannie-server/main_test.go b/cmd/jeannie-server/main_test.go index a931d14..c1bcfb9 100644 --- a/cmd/jeannie-server/main_test.go +++ b/cmd/jeannie-server/main_test.go @@ -112,6 +112,14 @@ func TestStorageCommandIsRemotelyEnabled(t *testing.T) { } } +func TestClusterBootstrapCommandsAreRemotelyEnabled(t *testing.T) { + for _, command := range []string{"cluster", "cluster-context", "stop-cluster", "cleanup-debian-k8s", "platform", "apps"} { + if !allowedCommands[command] { + t.Fatalf("%s must be exposed through the remote API", command) + } + } +} + func TestMeshCommandIsRemotelyEnabled(t *testing.T) { if !allowedCommands["mesh"] { t.Fatal("mesh must be exposed through the remote API")