Skip to content

🌱 Bump to golangci-lint v2.13.1 - #3580

Open
dongjiang1989 wants to merge 2 commits into
kubernetes-sigs:mainfrom
dongjiang1989:golangci-linter-v2.13.1
Open

🌱 Bump to golangci-lint v2.13.1#3580
dongjiang1989 wants to merge 2 commits into
kubernetes-sigs:mainfrom
dongjiang1989:golangci-linter-v2.13.1

Conversation

@dongjiang1989

@dongjiang1989 dongjiang1989 commented Aug 25, 2026

Copy link
Copy Markdown
Member

What does this do?

ref: kubernetes-sigs/controller-tools#1469

  • Upgrade golangci-lint from v2.12.2 to v2.13.1
  • Use strings.Cut instead of strings.SplitN in gomodcheck
  • Remove fmtappendf from modernize disable list (removed in v2.13.1)
  • Fix SA1019 staticcheck deprecation warnings:
    • Replace deprecated Requeue: true with RequeueAfter in examples
    • Use metav1.NewFieldsV1() instead of deprecated Raw field in tests
    • Add //nolint:staticcheck for intentional deprecated Requeue usage in controller tests

Why?

Keep CI tooling current and resolve new deprecation warnings introduced by the linter upgrade.

…rnings

- Upgrade golangci-lint from v2.12.2 to v2.13.1 in CI workflow
- Use strings.Cut instead of strings.SplitN in gomodcheck
- Replace deprecated Requeue:true with RequeueAfter in examples/crd
- Use metav1.NewFieldsV1() instead of deprecated Raw field in fake client tests
- Add nolint:staticcheck for intentional use of deprecated Requeue field in controller tests

Signed-off-by: dongjiang <dongjiang1989@126.com>
@kubernetes-prow
kubernetes-prow Bot requested review from inteon and troy0820 August 25, 2026 07:32
@kubernetes-prow kubernetes-prow Bot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 25, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dongjiang1989
Once this PR has been reviewed and has the lgtm label, please assign alvaroaleman for approval. For more information see the Code Review Process.

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

Details 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

@kubernetes-prow kubernetes-prow Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Aug 25, 2026
@dongjiang1989 dongjiang1989 changed the title 🌱 Upgrade golangci-lint to v2.13.1 and fix SA1019 warnings 🌱 Bump to golangci-lint v2.13.1 Aug 25, 2026
…3.1)

Signed-off-by: dongjiang <dongjiang1989@126.com>
@kubernetes-prow kubernetes-prow Bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant