File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ export class KubeConfig implements SecurityAuthentication {
147
147
this . makePathsAbsolute ( rootDirectory ) ;
148
148
}
149
149
150
- public async applytoFetchOptions ( opts : https . RequestOptions ) : Promise < RequestInit > {
150
+ public async applyToFetchOptions ( opts : https . RequestOptions ) : Promise < RequestInit > {
151
151
await this . applyToHTTPSOptions ( opts ) ;
152
152
const headers = new Headers ( ) ;
153
153
for ( const [ key , val ] of Object . entries ( opts . headers || { } ) ) {
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ describe('KubeConfig', () => {
254
254
list : [ 'a' , 'b' ] ,
255
255
} ,
256
256
} ;
257
- const requestInit = await kc . applytoFetchOptions ( opts ) ;
257
+ const requestInit = await kc . applyToFetchOptions ( opts ) ;
258
258
const expectedCA = Buffer . from ( 'CADATA2' , 'utf-8' ) ;
259
259
const expectedAgent = new https . Agent ( {
260
260
ca : expectedCA ,
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ export class Log {
120
120
searchParams . set ( 'container' , containerName ) ;
121
121
AddOptionsToSearchParams ( options , searchParams ) ;
122
122
123
- const requestInit = await this . config . applytoFetchOptions ( { } ) ;
123
+ const requestInit = await this . config . applyToFetchOptions ( { } ) ;
124
124
125
125
const controller = new AbortControllerCtor ( ) ;
126
126
requestInit . signal = controller . signal ;
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export class Metrics {
84
84
85
85
const requestURL = cluster . server + path ;
86
86
87
- const requestInit = await this . config . applytoFetchOptions ( { } ) ;
87
+ const requestInit = await this . config . applyToFetchOptions ( { } ) ;
88
88
requestInit . method = 'GET' ;
89
89
90
90
return fetch ( requestURL , requestInit )
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export class Watch {
41
41
}
42
42
}
43
43
44
- const requestInit = await this . config . applytoFetchOptions ( { } ) ;
44
+ const requestInit = await this . config . applyToFetchOptions ( { } ) ;
45
45
46
46
const controller = new AbortControllerCtor ( ) ;
47
47
requestInit . signal = controller . signal ;
You can’t perform that action at this time.
0 commit comments