Skip to content

Commit

Permalink
add client auth imports
Browse files Browse the repository at this point in the history
  • Loading branch information
nilic committed Dec 22, 2022
1 parent 7ab5d39 commit 4473fe3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ go 1.19
require (
github.com/spf13/cobra v1.6.0
k8s.io/cli-runtime v0.26.0
k8s.io/client-go v0.26.0
k8s.io/kubectl v0.26.0
)

Expand Down Expand Up @@ -66,7 +67,6 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/api v0.26.0 // indirect
k8s.io/apimachinery v0.26.0 // indirect
k8s.io/client-go v0.26.0 // indirect
k8s.io/component-base v0.26.0 // indirect
k8s.io/klog/v2 v2.80.1 // indirect
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect
Expand Down
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import (
"github.com/nilic/kubectl-rsh/cmd"
"k8s.io/cli-runtime/pkg/genericclioptions"
kcmdutil "k8s.io/kubectl/pkg/cmd/util"

// Import to initialize client auth plugins.
_ "k8s.io/client-go/plugin/pkg/client/auth"
)

func main() {
Expand Down

0 comments on commit 4473fe3

Please sign in to comment.