From b0dc2619661130e542798aabf1a3610231fc8d31 Mon Sep 17 00:00:00 2001 From: Anatolii Bazko Date: Thu, 21 Oct 2021 12:52:26 +0300 Subject: [PATCH] chore: warn user if DevWorkspace is enabled on k8s Signed-off-by: Anatolii Bazko --- src/commands/server/deploy.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/commands/server/deploy.ts b/src/commands/server/deploy.ts index ddc7ed865..166d066a3 100644 --- a/src/commands/server/deploy.ts +++ b/src/commands/server/deploy.ts @@ -360,6 +360,12 @@ export default class Deploy extends Command { } } + if (!flags.batch && isKubernetesPlatformFamily(flags.platform) && (isDevWorkspaceEnabled(ctx) || flags['workspace-engine'] === 'dev-workspace')) { + if (!await cli.confirm('DevWorkspace is experimental feature. It requires direct access to the underlying infrastructure REST API.\nThis results in huge privilege escalation. Do you want to proceed? [y/n]')) { + cli.exit(0) + } + } + const dexTasks = new DexTasks(flags) const cheTasks = new CheTasks(flags) const platformTasks = new PlatformTasks(flags)