Skip to content

Commit

Permalink
chore: warn user if DevWorkspace is enabled on k8s (#1786)
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
  • Loading branch information
tolusha authored Oct 21, 2021
1 parent 8af4351 commit 4972fc1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/commands/server/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4972fc1

Please sign in to comment.