Skip to content

Commit

Permalink
Add a comment about auth-plugin support status
Browse files Browse the repository at this point in the history
  • Loading branch information
kazk committed Feb 10, 2021
1 parent 2bb6392 commit e5da843
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kube/src/service/auth/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ pub(crate) enum Authentication {
RefreshableToken(RefreshableToken),
}

// See https://github.com/kubernetes/kubernetes/tree/master/staging/src/k8s.io/client-go/plugin/pkg/client/auth
// for the list of auth-plugins supported by client-go.
// We currently support the following:
// - exec
// - gcp: command based token source (exec)
// - gcp: application credential based token source (requires `oauth` feature)
#[derive(Debug, Clone)]
pub(crate) enum RefreshableToken {
Exec(Arc<Mutex<(String, DateTime<Utc>, AuthInfo)>>),
Expand Down

0 comments on commit e5da843

Please sign in to comment.