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 {
5858export interface ApiType { }
5959
6060export class KubeConfig implements SecurityAuthentication {
61- private static authenticators : Authenticator [ ] = [
61+ private authenticators : Authenticator [ ] = [
6262 new AzureAuth ( ) ,
6363 new GoogleCloudPlatformAuth ( ) ,
6464 new ExecAuth ( ) ,
@@ -596,7 +596,7 @@ export class KubeConfig implements SecurityAuthentication {
596596 if ( ! user ) {
597597 return ;
598598 }
599- let authenticator = KubeConfig . authenticators . find ( ( elt : Authenticator ) => {
599+ let authenticator = this . authenticators . find ( ( elt : Authenticator ) => {
600600 return elt . isAuthProvider ( user ) ;
601601 } ) ;
602602
Original file line number Diff line number Diff line change @@ -1345,7 +1345,7 @@ describe('KubeConfig', () => {
13451345 // TODO: inject the exec command here?
13461346 const opts = { } as RequestOptions ;
13471347 await config . applyToHTTPSOptions ( opts ) ;
1348- const execAuthenticator = ( KubeConfig as any ) . authenticators . find (
1348+ const execAuthenticator = ( config as any ) . authenticators . find (
13491349 ( authenticator ) => authenticator instanceof ExecAuth ,
13501350 ) ;
13511351 deepStrictEqual ( execAuthenticator . tokenCache . exec , JSON . parse ( responseStr ) ) ;
You can’t perform that action at this time.
0 commit comments