We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a9c338 commit 15d6e52Copy full SHA for 15d6e52
src/health.ts
@@ -1,5 +1,4 @@
1
import fetch from 'node-fetch';
2
-import { AbortSignal } from 'node-fetch/externals';
3
import { KubeConfig } from './config';
4
import { RequestOptions } from 'node:https';
5
@@ -30,8 +29,9 @@ export class Health {
30
29
31
const requestURL = new URL(cluster.server + path);
32
const requestInit = await this.config.applyToFetchOptions(opts);
33
- const controller = new AbortController();
34
- requestInit.signal = controller.signal as AbortSignal;
+ if (opts.signal) {
+ requestInit.signal = opts.signal;
+ }
35
requestInit.method = 'GET';
36
37
try {
0 commit comments