Skip to content

Commit e42af1b

Browse files
zhangtbjtekton-robot
authored andcommitted
Add kube client oidc authentication support for testing
1 parent 75e47ca commit e42af1b

File tree

3 files changed

+384
-1
lines changed

3 files changed

+384
-1
lines changed

Gopkg.lock

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/init_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ import (
4040

4141
// Mysteriously by k8s libs, or they fail to create `KubeClient`s from config. Apparently just importing it is enough. @_@ side effects @_@. https://github.com/kubernetes/client-go/issues/242
4242
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
43+
// Mysteriously by k8s libs, or they fail to create `KubeClient`s when using oidc authentication. Apparently just importing it is enough. @_@ side effects @_@. https://github.com/kubernetes/client-go/issues/345
44+
_ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
4345
)
4446

4547
var initMetrics sync.Once

0 commit comments

Comments
 (0)