Skip to content

Commit f44d7d8

Browse files
debug
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
1 parent 6c176f1 commit f44d7d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/extensions/che-api/src/impl/k8s-workspace-service-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
/* eslint-disable header/header */
1212

13-
import * as k8s from '@kubernetes/client-node';
1413
import { inject, injectable } from 'inversify';
1514
import { K8SServiceImpl } from './k8s-service-impl';
1615
import { K8sDevWorkspaceEnvVariables } from './k8s-devworkspace-env-variables';
@@ -59,6 +58,7 @@ export class K8sWorkspaceServiceImpl implements WorkspaceService {
5958

6059
// stopping the workspace is changing the started state to false
6160
public async stop(): Promise<void> {
61+
const k8s = await import('@kubernetes/client-node');
6262
const customObjectsApi = this.k8SService.makeApiClient(k8s.CustomObjectsApi);
6363
const group = 'workspace.devfile.io';
6464
const version = 'v1alpha2';

0 commit comments

Comments
 (0)