Skip to content

Commit

Permalink
feat: add registries to post install checks
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Vala <mvala@redhat.com>
  • Loading branch information
sparkoo committed Jul 22, 2019
1 parent b6901d2 commit afb7a0f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/commands/server/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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'
}
Expand Down

0 comments on commit afb7a0f

Please sign in to comment.