diff --git a/package-lock.json b/package-lock.json index 6e63655c0..f6e793238 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "express": "4.21.0", "fast-json-patch": "3.1.1", "json-pointer": "^0.6.2", - "kubernetes-fluent-client": "3.0.4", + "kubernetes-fluent-client": "4.0.0-rc-http2-watch", "pino": "9.4.0", "pino-pretty": "11.2.2", "prom-client": "15.1.3", @@ -7011,9 +7011,10 @@ } }, "node_modules/kubernetes-fluent-client": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/kubernetes-fluent-client/-/kubernetes-fluent-client-3.0.4.tgz", - "integrity": "sha512-mkLpT2Wjm8zUO3fgIy5d+UqFWoe4DG/soJA5wwrCTrsis+JHBnuLfTtI8bU/y2ie4EOfW0uSs8c0oXmveMImZQ==", + "version": "4.0.0-rc-http2-watch", + "resolved": "https://registry.npmjs.org/kubernetes-fluent-client/-/kubernetes-fluent-client-4.0.0-rc-http2-watch.tgz", + "integrity": "sha512-Nyvc6XFThLPiY0tzgFxrYQ8mqNvZyST9BfMY4I6LAkAaucCScsqmk5niFjgZnBYsENeGGqYy2mNzMO8mr0j5BQ==", + "license": "Apache-2.0", "dependencies": { "@kubernetes/client-node": "1.0.0-rc6", "byline": "5.0.0", diff --git a/package.json b/package.json index 92eb2575f..f886119d3 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "express": "4.21.0", "fast-json-patch": "3.1.1", "json-pointer": "^0.6.2", - "kubernetes-fluent-client": "3.0.4", + "kubernetes-fluent-client": "4.0.0-rc-http2-watch", "pino": "9.4.0", "pino-pretty": "11.2.2", "prom-client": "15.1.3", diff --git a/src/lib/watch-processor.ts b/src/lib/watch-processor.ts index 586c99ab7..c75ced5c1 100644 --- a/src/lib/watch-processor.ts +++ b/src/lib/watch-processor.ts @@ -49,6 +49,7 @@ export function getOrCreateQueue(obj: KubernetesObject) { // Watch configuration const watchCfg: WatchCfg = { + useHTTP2: process.env.PEPR_HTTP2_WATCH === "true", resyncFailureMax: process.env.PEPR_RESYNC_FAILURE_MAX ? parseInt(process.env.PEPR_RESYNC_FAILURE_MAX, 10) : 5, resyncDelaySec: process.env.PEPR_RESYNC_DELAY_SECONDS ? parseInt(process.env.PEPR_RESYNC_DELAY_SECONDS, 10) : 5, lastSeenLimitSeconds: process.env.PEPR_LAST_SEEN_LIMIT_SECONDS