Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
Fix auth
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonyelmini committed Sep 25, 2023
1 parent db2963c commit d337742
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/kubernetes/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export class Client {
this.config = config;
this.kubeConfig = new k8s.KubeConfig();

this.authenticate();

this.appsClient = this.kubeConfig.makeApiClient(k8s.AppsV1Api);
this.authorizationClient = this.kubeConfig.makeApiClient(
k8s.AuthorizationV1Api,
Expand Down
1 change: 0 additions & 1 deletion src/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@ export async function validateInvocation(
}

const client = getOrCreateAPIClient(config);
client.authenticate();
await client.verifyAuthentication();
}

0 comments on commit d337742

Please sign in to comment.