-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix un-initialized once that causes panic #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
LGTM |
pkg/admission/controller_test.go
Outdated
) | ||
|
||
func TestCertProvisionerInit(t *testing.T) { | ||
p := &CertProvisioner{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to use a fake client like Client: fake.NewFakeClient()
.
Otherwise, it will try find the kubeconfig which doesn't exist in the test env.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/lgtm |
Fix un-initialized once that causes panic
Fix container-builder-local repo
No description provided.