Skip to content

Commit 916249e

Browse files
committed
fix: correct casing of applyToFetchOptions
1 parent 84da179 commit 916249e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class KubeConfig implements SecurityAuthentication {
147147
this.makePathsAbsolute(rootDirectory);
148148
}
149149

150-
public async applytoFetchOptions(opts: https.RequestOptions): Promise<RequestInit> {
150+
public async applyToFetchOptions(opts: https.RequestOptions): Promise<RequestInit> {
151151
await this.applyToHTTPSOptions(opts);
152152
const headers = new Headers();
153153
for (const [key, val] of Object.entries(opts.headers || {})) {

src/config_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ describe('KubeConfig', () => {
254254
list: ['a', 'b'],
255255
},
256256
};
257-
const requestInit = await kc.applytoFetchOptions(opts);
257+
const requestInit = await kc.applyToFetchOptions(opts);
258258
const expectedCA = Buffer.from('CADATA2', 'utf-8');
259259
const expectedAgent = new https.Agent({
260260
ca: expectedCA,

src/log.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class Log {
120120
searchParams.set('container', containerName);
121121
AddOptionsToSearchParams(options, searchParams);
122122

123-
const requestInit = await this.config.applytoFetchOptions({});
123+
const requestInit = await this.config.applyToFetchOptions({});
124124

125125
const controller = new AbortControllerCtor();
126126
requestInit.signal = controller.signal;

src/metrics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class Metrics {
8484

8585
const requestURL = cluster.server + path;
8686

87-
const requestInit = await this.config.applytoFetchOptions({});
87+
const requestInit = await this.config.applyToFetchOptions({});
8888
requestInit.method = 'GET';
8989

9090
return fetch(requestURL, requestInit)

src/watch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class Watch {
4141
}
4242
}
4343

44-
const requestInit = await this.config.applytoFetchOptions({});
44+
const requestInit = await this.config.applyToFetchOptions({});
4545

4646
const controller = new AbortControllerCtor();
4747
requestInit.signal = controller.signal;

0 commit comments

Comments
 (0)