File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ function fileExists(filepath: string): boolean {
39
39
}
40
40
41
41
export class KubeConfig {
42
- private static authenticators : Authenticator [ ] = [
42
+ private authenticators : Authenticator [ ] = [
43
43
new AzureAuth ( ) ,
44
44
new GoogleCloudPlatformAuth ( ) ,
45
45
new ExecAuth ( ) ,
@@ -450,7 +450,7 @@ export class KubeConfig {
450
450
if ( ! user ) {
451
451
return ;
452
452
}
453
- const authenticator = KubeConfig . authenticators . find ( ( elt : Authenticator ) => {
453
+ const authenticator = this . authenticators . find ( ( elt : Authenticator ) => {
454
454
return elt . isAuthProvider ( user ) ;
455
455
} ) ;
456
456
Original file line number Diff line number Diff line change @@ -1169,7 +1169,7 @@ describe('KubeConfig', () => {
1169
1169
// TODO: inject the exec command here?
1170
1170
const opts = { } as requestlib . Options ;
1171
1171
await config . applyToRequest ( opts ) ;
1172
- let execAuthenticator = ( KubeConfig as any ) . authenticators . find (
1172
+ let execAuthenticator = ( config as any ) . authenticators . find (
1173
1173
( authenticator ) => authenticator instanceof ExecAuth ,
1174
1174
) ;
1175
1175
expect ( execAuthenticator . tokenCache [ 'exec' ] ) . to . deep . equal ( JSON . parse ( responseStr ) ) ;
You can’t perform that action at this time.
0 commit comments