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 @@ -58,7 +58,7 @@ function fileExists(filepath: string): boolean {
58
58
export interface ApiType { }
59
59
60
60
export class KubeConfig implements SecurityAuthentication {
61
- private static authenticators : Authenticator [ ] = [
61
+ private authenticators : Authenticator [ ] = [
62
62
new AzureAuth ( ) ,
63
63
new GoogleCloudPlatformAuth ( ) ,
64
64
new ExecAuth ( ) ,
@@ -596,7 +596,7 @@ export class KubeConfig implements SecurityAuthentication {
596
596
if ( ! user ) {
597
597
return ;
598
598
}
599
- let authenticator = KubeConfig . authenticators . find ( ( elt : Authenticator ) => {
599
+ let authenticator = this . authenticators . find ( ( elt : Authenticator ) => {
600
600
return elt . isAuthProvider ( user ) ;
601
601
} ) ;
602
602
Original file line number Diff line number Diff line change @@ -1345,7 +1345,7 @@ describe('KubeConfig', () => {
1345
1345
// TODO: inject the exec command here?
1346
1346
const opts = { } as RequestOptions ;
1347
1347
await config . applyToHTTPSOptions ( opts ) ;
1348
- const execAuthenticator = ( KubeConfig as any ) . authenticators . find (
1348
+ const execAuthenticator = ( config as any ) . authenticators . find (
1349
1349
( authenticator ) => authenticator instanceof ExecAuth ,
1350
1350
) ;
1351
1351
deepStrictEqual ( execAuthenticator . tokenCache . exec , JSON . parse ( responseStr ) ) ;
You can’t perform that action at this time.
0 commit comments