kubernetes-fluent-client 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fluent/index.js +1 -1
- package/dist/fluent/watch.js +1 -1
- package/dist/generate.js +1 -1
- package/package.json +5 -5
- package/src/fluent/index.ts +2 -2
- package/src/fluent/watch.ts +1 -1
- package/src/generate.ts +1 -1
package/dist/fluent/index.js
CHANGED
package/dist/fluent/watch.js
CHANGED
|
@@ -104,7 +104,7 @@ class Watcher {
|
|
|
104
104
|
this.$relistTimer = setInterval(() => {
|
|
105
105
|
this.#latestRelistWindow = new Date().toISOString();
|
|
106
106
|
this.#events.emit(WatchEvent.INIT_CACHE_MISS, this.#latestRelistWindow);
|
|
107
|
-
this.#list;
|
|
107
|
+
void this.#list();
|
|
108
108
|
}, watchCfg.relistIntervalSec * 1000 + jitter);
|
|
109
109
|
// Rebuild the watch every resync delay interval
|
|
110
110
|
this.#resyncTimer = setInterval(this.#checkResync, watchCfg.resyncDelaySec * 1000 + jitter);
|
package/dist/generate.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kubernetes-fluent-client",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "A @kubernetes/client-node fluent API wrapper that leverages K8s Server Side Apply.",
|
|
5
5
|
"bin": "./dist/cli.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"@types/readable-stream": "4.0.15",
|
|
53
53
|
"@types/urijs": "^1.19.25",
|
|
54
54
|
"@types/yargs": "17.0.32",
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "
|
|
56
|
-
"@typescript-eslint/parser": "
|
|
57
|
-
"eslint-plugin-jsdoc": "48.
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "8.0.0",
|
|
56
|
+
"@typescript-eslint/parser": "8.0.0",
|
|
57
|
+
"eslint-plugin-jsdoc": "48.10.2",
|
|
58
58
|
"jest": "29.7.0",
|
|
59
59
|
"nock": "13.5.4",
|
|
60
60
|
"prettier": "3.3.3",
|
|
61
61
|
"semantic-release": "24.0.0",
|
|
62
|
-
"ts-jest": "29.2.
|
|
62
|
+
"ts-jest": "29.2.4",
|
|
63
63
|
"typescript": "5.5.4"
|
|
64
64
|
},
|
|
65
65
|
"release": {
|
package/src/fluent/index.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { ApplyCfg, FetchMethods, Filters, K8sInit, Paths, WatchAction } from "./
|
|
|
13
13
|
import { k8sCfg, k8sExec } from "./utils";
|
|
14
14
|
import { WatchCfg, Watcher } from "./watch";
|
|
15
15
|
import { hasLogs } from "../helpers";
|
|
16
|
-
import { Pod, Service, ReplicaSet } from "../upstream";
|
|
16
|
+
import { Pod, type Service, type ReplicaSet } from "../upstream";
|
|
17
17
|
/**
|
|
18
18
|
* Kubernetes fluent API inspired by Kubectl. Pass in a model, then call filters and actions on it.
|
|
19
19
|
*
|
|
@@ -138,7 +138,7 @@ export function K8s<T extends GenericClass, K extends KubernetesObject = Instanc
|
|
|
138
138
|
} else {
|
|
139
139
|
podList.push(object);
|
|
140
140
|
}
|
|
141
|
-
} catch
|
|
141
|
+
} catch {
|
|
142
142
|
throw new Error(`Failed to get logs in KFC Logs function`);
|
|
143
143
|
}
|
|
144
144
|
|
package/src/fluent/watch.ts
CHANGED
|
@@ -133,7 +133,7 @@ export class Watcher<T extends GenericClass> {
|
|
|
133
133
|
() => {
|
|
134
134
|
this.#latestRelistWindow = new Date().toISOString();
|
|
135
135
|
this.#events.emit(WatchEvent.INIT_CACHE_MISS, this.#latestRelistWindow);
|
|
136
|
-
this.#list;
|
|
136
|
+
void this.#list();
|
|
137
137
|
},
|
|
138
138
|
watchCfg.relistIntervalSec * 1000 + jitter,
|
|
139
139
|
);
|
package/src/generate.ts
CHANGED
|
@@ -160,7 +160,7 @@ async function readOrFetchCrd(opts: GenerateOptions): Promise<CustomResourceDefi
|
|
|
160
160
|
const payload = fs.readFileSync(filePath, "utf8");
|
|
161
161
|
return loadAllYaml(payload) as CustomResourceDefinition[];
|
|
162
162
|
}
|
|
163
|
-
} catch
|
|
163
|
+
} catch {
|
|
164
164
|
// Ignore errors
|
|
165
165
|
}
|
|
166
166
|
|