Files
backbone/src/services/k8s/k8s.config.ts
2025-10-16 16:43:44 +02:00

16 lines
284 B
TypeScript

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 };