diff --git a/src/tasks/che.ts b/src/tasks/che.ts index d8ce7597e..7ad491570 100644 --- a/src/tasks/che.ts +++ b/src/tasks/che.ts @@ -43,6 +43,8 @@ export class CheTasks { pluginRegistryDeploymentName = 'plugin-registry' pluginRegistrySelector = 'app=che,component=plugin-registry' + cheOperatorSelector = 'app=che-operator' + constructor(flags: any) { this.kube = new KubeHelper(flags) this.kubeTasks = new KubeTasks(flags) @@ -493,6 +495,14 @@ export class CheTasks { */ serverLogsTasks(flags: any, follow: boolean): ReadonlyArray { return [ + { + title: `${follow ? 'Start following' : 'Read'} Operator logs`, + skip: () => flags.installer && flags.installer !== 'operator', + task: async (ctx: any, task: any) => { + await this.che.readPodLog(flags.chenamespace, this.cheOperatorSelector, ctx.directory, follow) + task.title = `${task.title}...done` + } + }, { title: `${follow ? 'Start following' : 'Read'} Eclipse Che logs`, task: async (ctx: any, task: any) => { diff --git a/yarn.lock b/yarn.lock index 018b64f59..32d06054a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1680,7 +1680,7 @@ ecc-jsbn@~0.1.1: "eclipse-che@git://github.com/eclipse/che#master": version "0.0.0" - resolved "git://github.com/eclipse/che#444378684f44401898cfef95a3d37634464a891b" + resolved "git://github.com/eclipse/che#980be4ce442fad6bdf3f1203615af4147b06d066" editorconfig@^0.15.0: version "0.15.3"