Skip to content

Commit

Permalink
Merge branch 'kubernetes-client:master' into refactor-examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Ananya2001-an authored Sep 11, 2023
2 parents f6f0465 + c52503f commit 78c4c65
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
36 changes: 18 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function fileExists(filepath: string): boolean {
}

export class KubeConfig {
private static authenticators: Authenticator[] = [
private authenticators: Authenticator[] = [
new AzureAuth(),
new GoogleCloudPlatformAuth(),
new ExecAuth(),
Expand Down Expand Up @@ -450,7 +450,7 @@ export class KubeConfig {
if (!user) {
return;
}
const authenticator = KubeConfig.authenticators.find((elt: Authenticator) => {
const authenticator = this.authenticators.find((elt: Authenticator) => {
return elt.isAuthProvider(user);
});

Expand Down
2 changes: 1 addition & 1 deletion src/config_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ describe('KubeConfig', () => {
// TODO: inject the exec command here?
const opts = {} as requestlib.Options;
await config.applyToRequest(opts);
let execAuthenticator = (KubeConfig as any).authenticators.find(
let execAuthenticator = (config as any).authenticators.find(
(authenticator) => authenticator instanceof ExecAuth,
);
expect(execAuthenticator.tokenCache['exec']).to.deep.equal(JSON.parse(responseStr));
Expand Down

0 comments on commit 78c4c65

Please sign in to comment.