Skip to content

Commit 9e986f7

Browse files
committed
feat(cmd): add support for oidc auth provider
Symptoms: ``` $ kubectl trace run $NODE_NAME -e "tracepoint:syscalls:sys_enter_* { @[probe] = count(); }" Error: No Auth Provider found for name "oidc" ``` The client/auth/oidc pkg in client-go is not vendored. This patch adds the blank import. Signed-off-by: Alban Crequy <[email protected]>
1 parent 04e3299 commit 9e986f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/kubectl-trace/root.go

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"github.com/spf13/pflag"
88
"k8s.io/cli-runtime/pkg/genericclioptions"
99
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
10+
_ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
1011
)
1112

1213
func main() {

0 commit comments

Comments
 (0)