From b2236b5dc4adcb9e5432f53ac37f3ca39f548d81 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Thu, 18 Jul 2019 21:29:38 -0700 Subject: [PATCH] Add oidc autthenticator into the config list. --- src/config.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index e7984bd6c7..213e5fb0bf 100644 --- a/src/config.ts +++ b/src/config.ts @@ -12,6 +12,7 @@ import { Authenticator } from './auth'; import { CloudAuth } from './cloud_auth'; import { Cluster, Context, newClusters, newContexts, newUsers, User } from './config_types'; import { ExecAuth } from './exec_auth'; +import { OpenIDConnectAuth } from './oidc_auth'; // fs.existsSync was removed in node 10 function fileExists(filepath: string): boolean { @@ -24,7 +25,11 @@ function fileExists(filepath: string): boolean { } export class KubeConfig { - private static authenticators: Authenticator[] = [new CloudAuth(), new ExecAuth()]; + private static authenticators: Authenticator[] = [ + new CloudAuth(), + new ExecAuth(), + new OpenIDConnectAuth(), + ]; /** * The list of all known clusters