Skip to content

Commit

Permalink
feat: add client-go oidc
Browse files Browse the repository at this point in the history
  • Loading branch information
guozheng-shen committed May 6, 2024
1 parent fff3699 commit 26356f2
Show file tree
Hide file tree
Showing 3 changed files with 382 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/karmadactl/karmadactl.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package main

import (
_ "k8s.io/client-go/plugin/pkg/client/auth/oidc" // Register AuthProviderPlugin, using OIDC mode to connect to Kubernetes
"k8s.io/component-base/cli"
"k8s.io/kubectl/pkg/cmd/util"

Expand Down
380 changes: 380 additions & 0 deletions vendor/k8s.io/client-go/plugin/pkg/client/auth/oidc/oidc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,7 @@ k8s.io/client-go/pkg/apis/clientauthentication/v1
k8s.io/client-go/pkg/apis/clientauthentication/v1beta1
k8s.io/client-go/pkg/version
k8s.io/client-go/plugin/pkg/client/auth/exec
k8s.io/client-go/plugin/pkg/client/auth/oidc
k8s.io/client-go/rest
k8s.io/client-go/rest/fake
k8s.io/client-go/rest/watch
Expand Down

0 comments on commit 26356f2

Please sign in to comment.