diff --git a/src/kubernetes/client.ts b/src/kubernetes/client.ts index e62fda5..403448d 100644 --- a/src/kubernetes/client.ts +++ b/src/kubernetes/client.ts @@ -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, diff --git a/src/validator.ts b/src/validator.ts index 9ce4ad2..5fdf91e 100644 --- a/src/validator.ts +++ b/src/validator.ts @@ -24,6 +24,5 @@ export async function validateInvocation( } const client = getOrCreateAPIClient(config); - client.authenticate(); await client.verifyAuthentication(); }