Skip to content

Commit

Permalink
Merge pull request kubernetes-client#303 from brendandburns/oidc2
Browse files Browse the repository at this point in the history
Add oidc authenticator into the config list.
  • Loading branch information
k8s-ci-robot authored Jul 19, 2019
2 parents 93d78f6 + b2236b5 commit e8d2cb0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit e8d2cb0

Please sign in to comment.