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")