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

🌱 lint: remove skip-files for api/v1alpha3 #2378

Merged

Conversation

adityabhatia
Copy link
Contributor

What this PR does / why we need it:
This PR removes api/v1alpha3 files from golangci-lint skip-files config and fixes underlying lint issues.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes # #2058

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 21, 2023
@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 Sep 21, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @adityabhatia. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 21, 2023
@adityabhatia adityabhatia changed the title remove skip-files for api/v1alpha3 🌱 remove skip-files for api/v1alpha3 Sep 21, 2023
@adityabhatia adityabhatia changed the title 🌱 remove skip-files for api/v1alpha3 🌱 lint: remove skip-files for api/v1alpha3 Sep 21, 2023
@chrischdi
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Sep 22, 2023
@codecov
Copy link

codecov bot commented Sep 22, 2023

Codecov Report

Patch coverage: 44.00% and project coverage change: +0.57% 🎉

Comparison is base (c2dd905) 60.54% compared to head (47785f1) 61.11%.
Report is 16 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2378      +/-   ##
==========================================
+ Coverage   60.54%   61.11%   +0.57%     
==========================================
  Files         164      164              
  Lines        9392     9469      +77     
==========================================
+ Hits         5686     5787     +101     
+ Misses       3292     3275      -17     
+ Partials      414      407       -7     
Files Changed Coverage Δ
apis/v1alpha3/types.go 0.00% <ø> (ø)
apis/v1alpha3/vspherecluster_types.go 33.33% <0.00%> (ø)
apis/v1alpha3/vsphereclusteridentity_conversion.go 0.00% <0.00%> (ø)
apis/v1alpha3/vsphereclusteridentity_types.go 33.33% <0.00%> (ø)
apis/v1alpha3/vspheredeploymentzone_conversion.go 0.00% <0.00%> (ø)
apis/v1alpha3/vspheredeploymentzone_types.go 100.00% <ø> (ø)
apis/v1alpha3/vspherefailuredomain_conversion.go 0.00% <0.00%> (ø)
apis/v1alpha3/vspheremachine_types.go 33.33% <0.00%> (ø)
apis/v1alpha3/vspherevm_types.go 33.33% <0.00%> (ø)
apis/v1alpha3/conversion.go 100.00% <100.00%> (ø)
... and 2 more

... and 38 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

// vSphere server's certificate.
// DEPRECATED: will be removed in v1alpha4
// Depracated: will be removed in v1alpha4
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// Depracated: will be removed in v1alpha4
// Deprecated: will be removed in v1alpha4.

Also for the other occurencies :-)

// ClusterFinalizer allows ReconcileVSphereCluster to clean up vSphere
// resources associated with VSphereCluster before removing it from the
// API server.
ClusterFinalizer = "vspherecluster.infrastructure.cluster.x-k8s.io"
Copy link
Member

Choose a reason for hiding this comment

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

We should not remove this.

@@ -27,7 +27,7 @@ limitations under the License.
package v1alpha3

// CPIConfig is the vSphere cloud provider's configuration.
// DEPRECATED: will be removed in v1alpha4
// Depracated: will be removed in v1alpha4.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// Depracated: will be removed in v1alpha4.
//
// Deprecated: will be removed in v1alpha4.

Go needs Deprecated to be ona new line for it to be picked up by tooling.

Copy link
Contributor

@killianmuldoon killianmuldoon left a comment

Choose a reason for hiding this comment

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

Looks good - only fixups are to spelling and spacing for deprecated markers.

Thanks!

Copy link
Contributor

@killianmuldoon killianmuldoon left a comment

Choose a reason for hiding this comment

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

/lgtm

Thanks!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 22, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 1f75a7b7f7a7679da919a91db26747cff174121f

@killianmuldoon
Copy link
Contributor

/hold

@adityabhatia do you mind squashing the commits?

@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 Sep 22, 2023
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 22, 2023
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 22, 2023
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Sep 22, 2023
Copy link
Member

@chrischdi chrischdi left a comment

Choose a reason for hiding this comment

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

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chrischdi

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 25, 2023
@killianmuldoon
Copy link
Contributor

/lgtm
/hold cancel

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Sep 25, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 1f75a7b7f7a7679da919a91db26747cff174121f

@k8s-ci-robot k8s-ci-robot merged commit 29f9ef7 into kubernetes-sigs:main Sep 25, 2023
18 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.9 milestone Sep 25, 2023
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

4 participants