@eclipse-che/che-e2e 7.123.0-next-6b3e5e1 → 7.123.0-next-f84a4c3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -105,7 +105,7 @@ let KubernetesCommandLineToolsExecutor = KubernetesCommandLineToolsExecutor_1 =
|
|
|
105
105
|
getContainerName() {
|
|
106
106
|
Logger_1.Logger.debug(`${this.kubernetesCommandLineTool} - get container name.`);
|
|
107
107
|
Logger_1.Logger.debug(`Getting container name for pod: '${KubernetesCommandLineToolsExecutor_1.pod}' in namespace: ${this.namespace}`);
|
|
108
|
-
const output = this.shellExecutor.executeCommand(`${this.kubernetesCommandLineTool} get pod ${KubernetesCommandLineToolsExecutor_1.pod} -o jsonpath='{.spec.containers[
|
|
108
|
+
const output = this.shellExecutor.executeCommand(`${this.kubernetesCommandLineTool} get pod ${KubernetesCommandLineToolsExecutor_1.pod} -o jsonpath='{.spec.containers[0].name}' -n ${this.namespace}`);
|
|
109
109
|
(0, shelljs_1.echo)('\n');
|
|
110
110
|
const containerName = output.stderr ? output.stderr : output.stdout;
|
|
111
111
|
Logger_1.Logger.debug(`Found container name: '${containerName}'`);
|
package/package.json
CHANGED
|
@@ -81,7 +81,7 @@ export class KubernetesCommandLineToolsExecutor implements IKubernetesCommandLin
|
|
|
81
81
|
Logger.debug(`Getting container name for pod: '${KubernetesCommandLineToolsExecutor.pod}' in namespace: ${this.namespace}`);
|
|
82
82
|
|
|
83
83
|
const output: ShellString = this.shellExecutor.executeCommand(
|
|
84
|
-
`${this.kubernetesCommandLineTool} get pod ${KubernetesCommandLineToolsExecutor.pod} -o jsonpath='{.spec.containers[
|
|
84
|
+
`${this.kubernetesCommandLineTool} get pod ${KubernetesCommandLineToolsExecutor.pod} -o jsonpath='{.spec.containers[0].name}' -n ${this.namespace}`
|
|
85
85
|
);
|
|
86
86
|
echo('\n');
|
|
87
87
|
const containerName: string = output.stderr ? output.stderr : output.stdout;
|