We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c176f1 commit f44d7d8Copy full SHA for f44d7d8
1 file changed
code/extensions/che-api/src/impl/k8s-workspace-service-impl.ts
@@ -10,7 +10,6 @@
10
11
/* eslint-disable header/header */
12
13
-import * as k8s from '@kubernetes/client-node';
14
import { inject, injectable } from 'inversify';
15
import { K8SServiceImpl } from './k8s-service-impl';
16
import { K8sDevWorkspaceEnvVariables } from './k8s-devworkspace-env-variables';
@@ -59,6 +58,7 @@ export class K8sWorkspaceServiceImpl implements WorkspaceService {
59
58
60
// stopping the workspace is changing the started state to false
61
public async stop(): Promise<void> {
+ const k8s = await import('@kubernetes/client-node');
62
const customObjectsApi = this.k8SService.makeApiClient(k8s.CustomObjectsApi);
63
const group = 'workspace.devfile.io';
64
const version = 'v1alpha2';
0 commit comments