diff --git a/settings b/settings index 4954878e7e..06c43a14ef 100644 --- a/settings +++ b/settings @@ -30,4 +30,4 @@ export CLIENT_VERSION="0.8-SNAPSHOT" # Name of the release package export PACKAGE_NAME="@kubernetes/node-client" -export OPENAPI_GENERATOR_COMMIT=3e032bfcfd74b03f33fa5fb3d073286daf5cdbe1 +export OPENAPI_GENERATOR_COMMIT=d06ed32df0a30fe12a1c7ba98722c12e867b6060 diff --git a/src/gen/.openapi-generator/COMMIT b/src/gen/.openapi-generator/COMMIT index 2e148d692c..a56708a808 100644 --- a/src/gen/.openapi-generator/COMMIT +++ b/src/gen/.openapi-generator/COMMIT @@ -1,2 +1,2 @@ -Requested Commit/Tag : 3e032bfcfd74b03f33fa5fb3d073286daf5cdbe1 -Actual Commit : 3e032bfcfd74b03f33fa5fb3d073286daf5cdbe1 +Requested Commit/Tag : d06ed32df0a30fe12a1c7ba98722c12e867b6060 +Actual Commit : d06ed32df0a30fe12a1c7ba98722c12e867b6060 diff --git a/src/gen/http/http.ts b/src/gen/http/http.ts index 525eee647c..79bcf792e0 100644 --- a/src/gen/http/http.ts +++ b/src/gen/http/http.ts @@ -3,7 +3,6 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; -import { AbortSignal } from "node-fetch/externals"; import { Observable, from } from '../rxjsStub.js'; export * from './isomorphic-fetch.js'; diff --git a/src/watch.ts b/src/watch.ts index 98db927d45..4c51399a62 100644 --- a/src/watch.ts +++ b/src/watch.ts @@ -39,9 +39,10 @@ export class Watch { const requestInit = await this.config.applyToFetchOptions({}); const controller = new AbortController(); + const timeoutSignal = AbortSignal.timeout(30000); + requestInit.signal = AbortSignal.any([controller.signal, timeoutSignal]); requestInit.signal = controller.signal as AbortSignal; requestInit.method = 'GET'; - requestInit.timeout = 30000; let doneCalled: boolean = false; const doneCallOnce = (err: any) => {