Skip to content

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

Merged
merged 1 commit into from
Jul 9, 2018

Conversation

anfernee
Copy link
Member

@anfernee anfernee commented Jul 9, 2018

No description provided.

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jul 9, 2018
@mengqiy
Copy link
Member

mengqiy commented Jul 9, 2018

LGTM
Will apply labels after travis passes

)

func TestCertProvisionerInit(t *testing.T) {
p := &CertProvisioner{}
Copy link
Member

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.

Copy link
Member

@mengqiy mengqiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mengqiy mengqiy added approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Jul 9, 2018
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 9, 2018
@mengqiy
Copy link
Member

mengqiy commented Jul 9, 2018

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 9, 2018
@k8s-ci-robot k8s-ci-robot merged commit 6865d0a into kubernetes-sigs:master Jul 9, 2018
@anfernee anfernee deleted the fix-panic branch July 9, 2018 22:41
justinsb pushed a commit to justinsb/controller-runtime that referenced this pull request Dec 7, 2018
Fix un-initialized once that causes panic
DirectXMan12 pushed a commit that referenced this pull request Jan 31, 2020
Fix container-builder-local repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants