@@ -16,8 +16,8 @@ import {
1616 devworkspacePlural ,
1717 V1alpha2DevWorkspace
1818} from '@devfile/api' ;
19- import * as k8s from '@kubernetes/client-node' ;
20- import type { CoreV1Api , CustomObjectsApi , KubeConfig , V1Secret } from '@kubernetes/client-node' ;
19+ import { CoreV1Api , CustomObjectsApi , KubeConfig } from '@kubernetes/client-node' ;
20+ import type { V1Secret } from '@kubernetes/client-node' ;
2121import { injectable } from 'inversify' ;
2222
2323const PART_OF_LABEL = 'app.kubernetes.io/part-of' ;
@@ -33,7 +33,7 @@ export class K8sHelper {
3333 private devWorkspaceNamespace ! : string ;
3434
3535 constructor ( ) {
36- this . k8sConfig = new k8s . KubeConfig ( ) ;
36+ this . k8sConfig = new KubeConfig ( ) ;
3737 }
3838
3939 getConfig ( ) : KubeConfig {
@@ -43,15 +43,15 @@ export class K8sHelper {
4343 getCoreApi ( ) : CoreV1Api {
4444 if ( ! this . coreV1API ) {
4545 this . k8sConfig . loadFromDefault ( ) ;
46- this . coreV1API = this . k8sConfig . makeApiClient ( k8s . CoreV1Api ) ;
46+ this . coreV1API = this . k8sConfig . makeApiClient ( CoreV1Api ) ;
4747 }
4848 return this . coreV1API ;
4949 }
5050
5151 getCustomObjectsApi ( ) : CustomObjectsApi {
5252 if ( ! this . customObjectsApi ) {
5353 this . k8sConfig . loadFromCluster ( ) ;
54- this . customObjectsApi = this . k8sConfig . makeApiClient ( k8s . CustomObjectsApi ) ;
54+ this . customObjectsApi = this . k8sConfig . makeApiClient ( CustomObjectsApi ) ;
5555 }
5656 return this . customObjectsApi ;
5757 }
0 commit comments