Skip to content
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

generated code should pass go vet for go1.10 #62412

Merged
merged 3 commits into from
Apr 20, 2018

Conversation

bhcleek
Copy link
Contributor

@bhcleek bhcleek commented Apr 11, 2018

What this PR does / why we need it:

Update code generator and the code it generates to pass go vet.

go1.10 runs go vet whenever go test is run. Because of this, generated code for CRDs needs to pass go vet.

Release note:

Code generated for CRDs now passes `go vet`.

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 11, 2018
@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Apr 11, 2018
@bhcleek
Copy link
Contributor Author

bhcleek commented Apr 11, 2018

/sig api-machinery
/area custom-resources

@k8s-ci-robot k8s-ci-robot added sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. area/custom-resources labels Apr 11, 2018
@cblecker
Copy link
Member

/ok-to-test
/cc @sttts

@k8s-ci-robot k8s-ci-robot requested a review from sttts April 11, 2018 21:20
@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Apr 11, 2018
@sttts
Copy link
Contributor

sttts commented Apr 12, 2018

lgtm when it's green
/approve

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 12, 2018
@cblecker
Copy link
Member

/retest

@wenjiaswe
Copy link
Contributor

cc @roycaihw

@roycaihw
Copy link
Member

Please run make update to regenerate the code for other packages as well.

   M pkg/client/clientset_generated/internalclientset/fake/clientset_generated.go
   M staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/fake/clientset_generated.go
   M staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/fake/clientset_generated.go
   M staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/internalclientset/fake/clientset_generated.go
   M staging/src/k8s.io/client-go/kubernetes/fake/clientset_generated.go
   M staging/src/k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/fake/clientset_generated.go
   M staging/src/k8s.io/kube-aggregator/pkg/client/clientset_generated/internalclientset/fake/clientset_generated.go
   M staging/src/k8s.io/metrics/pkg/client/clientset_generated/clientset/fake/clientset_generated.go
   M staging/src/k8s.io/sample-apiserver/pkg/client/clientset/internalversion/fake/clientset_generated.go
   M staging/src/k8s.io/sample-apiserver/pkg/client/clientset/versioned/fake/clientset_generated.go
   M staging/src/k8s.io/sample-controller/pkg/client/clientset/versioned/fake/clientset_generated.go

lgtm when tests are green

@roycaihw
Copy link
Member

/assign

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Apr 16, 2018
@bhcleek
Copy link
Contributor Author

bhcleek commented Apr 16, 2018

/retest

@cblecker
Copy link
Member

/test pull-kubernetes-bazel-test

@bhcleek
Copy link
Contributor Author

bhcleek commented Apr 17, 2018

The bazel test failures are valid. I'm working on fixing them now.

@roycaihw
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 17, 2018
@sttts
Copy link
Contributor

sttts commented Apr 18, 2018

/assign @deads2k
/assign @DirectXMan12

for approval.

@deads2k
Copy link
Contributor

deads2k commented Apr 18, 2018

/approve
/hold

holding to squash all that generated code into one "generated" commit.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 18, 2018
bhcleek added 2 commits April 18, 2018 15:53
* Make sure sync.RWMutex values aren't copied.
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 18, 2018
@bhcleek
Copy link
Contributor Author

bhcleek commented Apr 18, 2018

I rebased to reduce the number of commits; all regenerated fakes are now in a single commit.

@bhcleek
Copy link
Contributor Author

bhcleek commented Apr 18, 2018

/test pull-kubernetes-e2e-gce-device-plugin-gpu

@deads2k
Copy link
Contributor

deads2k commented Apr 20, 2018

/approve
/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 20, 2018
@deads2k
Copy link
Contributor

deads2k commented Apr 20, 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 Apr 20, 2018
@deads2k deads2k added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 20, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: bhcleek, deads2k, roycaihw, sttts

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@deads2k
Copy link
Contributor

deads2k commented Apr 20, 2018

it's just the generated expression in metrics. tagging.

@k8s-github-robot
Copy link

/test all [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here.

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. area/custom-resources 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. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants