This commit is contained in:
Morten Olsen
2025-10-24 09:05:27 +02:00
parent 78995406ca
commit 2281dcafb4
10 changed files with 67 additions and 66 deletions

View File

@@ -8,7 +8,6 @@ class K8sConfig {
constructor() {
this.#config = new KubeConfig();
this.#config.loadFromDefault();
}
public get kubeConfig() {
@@ -17,7 +16,7 @@ class K8sConfig {
public get objectsApi() {
if (!this.#objectsApi) {
this.#objectsApi = this.#config.makeApiClient(KubernetesObjectApi)
this.#objectsApi = this.#config.makeApiClient(KubernetesObjectApi);
}
return this.#objectsApi;
}
@@ -31,7 +30,7 @@ class K8sConfig {
public get extensionsApi() {
if (!this.#extensionsApi) {
this.#extensionsApi = this.#config.makeApiClient(ApiextensionsV1Api)
this.#extensionsApi = this.#config.makeApiClient(ApiextensionsV1Api);
}
return this.#extensionsApi;
}