Skip to content

Commit e9dc38e

Browse files
committed
update(cmd/kubectl-trace): init all the Kubernetes client auth plugins at once
Signed-off-by: Leonardo Di Donato <[email protected]>
1 parent b0b6754 commit e9dc38e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/kubectl-trace/root.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"github.com/iovisor/kubectl-trace/pkg/cmd"
77
"github.com/spf13/pflag"
88
"k8s.io/cli-runtime/pkg/genericclioptions"
9-
_ "k8s.io/client-go/plugin/pkg/client/auth/azure"
10-
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
11-
_ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
9+
10+
// Initialize all k8s client auth plugins
11+
_ "k8s.io/client-go/plugin/pkg/client/auth"
1212
)
1313

1414
func main() {

0 commit comments

Comments
 (0)