diff --git a/packages/core/src/main/shell-session/node-shell-session/node-shell-session.ts b/packages/core/src/main/shell-session/node-shell-session/node-shell-session.ts index bb3653e786..7551e135b2 100644 --- a/packages/core/src/main/shell-session/node-shell-session/node-shell-session.ts +++ b/packages/core/src/main/shell-session/node-shell-session/node-shell-session.ts @@ -95,7 +95,7 @@ export class NodeShellSession extends ShellSession { break; } - await this.openShellProcess(this.dependencies.directoryContainingKubectl, args, env); + await this.openShellProcess(await this.kubectl.getPath(), args, env); } protected createNodeShellPod(coreApi: CoreV1Api) {