refact: cleanup
This commit is contained in:
15
src/services/k8s/k8s.config.ts
Normal file
15
src/services/k8s/k8s.config.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { KubeConfig } from '@kubernetes/client-node';
|
||||
|
||||
class K8sConfig {
|
||||
#config?: KubeConfig;
|
||||
|
||||
public get config() {
|
||||
if (!this.#config) {
|
||||
this.#config = new KubeConfig();
|
||||
this.#config.loadFromDefault();
|
||||
}
|
||||
return this.#config;
|
||||
}
|
||||
}
|
||||
|
||||
export { K8sConfig };
|
||||
Reference in New Issue
Block a user