Skip to content

Commit b2236b5

Browse files
committed
Add oidc autthenticator into the config list.
1 parent 93d78f6 commit b2236b5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { Authenticator } from './auth';
1212
import { CloudAuth } from './cloud_auth';
1313
import { Cluster, Context, newClusters, newContexts, newUsers, User } from './config_types';
1414
import { ExecAuth } from './exec_auth';
15+
import { OpenIDConnectAuth } from './oidc_auth';
1516

1617
// fs.existsSync was removed in node 10
1718
function fileExists(filepath: string): boolean {
@@ -24,7 +25,11 @@ function fileExists(filepath: string): boolean {
2425
}
2526

2627
export class KubeConfig {
27-
private static authenticators: Authenticator[] = [new CloudAuth(), new ExecAuth()];
28+
private static authenticators: Authenticator[] = [
29+
new CloudAuth(),
30+
new ExecAuth(),
31+
new OpenIDConnectAuth(),
32+
];
2833

2934
/**
3035
* The list of all known clusters

0 commit comments

Comments
 (0)