From afb7a0fa6e8d8f8e599f49c57cf7ed194662485e Mon Sep 17 00:00:00 2001 From: Michal Vala Date: Mon, 22 Jul 2019 10:12:27 +0200 Subject: [PATCH] feat: add registries to post install checks Signed-off-by: Michal Vala --- src/commands/server/start.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/commands/server/start.ts b/src/commands/server/start.ts index 7ac7d1eb3..77faed075 100644 --- a/src/commands/server/start.ts +++ b/src/commands/server/start.ts @@ -286,6 +286,20 @@ export default class Start extends Command { }) } + if (!flags['devfile-registry-url']) { + cheBootstrapSubTasks.add({ + title: 'Devfile registry pod bootstrap', + task: () => this.podStartTasks(this.getDevfileRegistrySelector(), flags.chenamespace) + }) + } + + if (!flags['plugin-registry-url']) { + cheBootstrapSubTasks.add({ + title: 'Plugin registry pod bootstrap', + task: () => this.podStartTasks(this.getPluginRegistrySelector(), flags.chenamespace) + }) + } + cheBootstrapSubTasks.add({ title: 'Che pod bootstrap', task: () => this.podStartTasks(this.getCheServerSelector(), flags.chenamespace) @@ -329,6 +343,14 @@ export default class Start extends Command { return 'app=che,component=keycloak' } + getDevfileRegistrySelector(): string { + return 'app=che,component=devfile-registry' + } + + getPluginRegistrySelector(): string { + return 'app=che,component=plugin-registry' + } + getCheServerSelector(): string { return 'app=che,component=che' }