Skip to content

Upgrade k8s modules and linter - #3269

Open
cfryanr wants to merge 6 commits into
mainfrom
upgrade-k8s-mods-and-linter
Open

Upgrade k8s modules and linter#3269
cfryanr wants to merge 6 commits into
mainfrom
upgrade-k8s-mods-and-linter

Conversation

@cfryanr

@cfryanr cfryanr commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

This PR:

  • Upgrades all go.mod dependencies. Most notably, it upgrades the k8s modules to v0.37.0.
  • Removes the generated code for k8s 1.31, which is now so old that it is 1 year beyond support.
  • Adds the generated code for k8s 1.37.
  • Upgrades golangci-lint to v2.13.1 and fixes all resulting warnings.
  • Fixes some test expectations and also fix the production code in impersonator.go to make them compatible with both Go 1.27 and also with older versions, e.g. Go 1.26. With these changes, all unit tests pass when run with either Go 1.26 or Go 1.27.

Note to reviewers: Because this PR includes generated code, it will probably be easier to review each commit separately. The generated code shouldn't need human review since it is auto-generated.

Release note:

NONE

cfryanr and others added 5 commits August 27, 2026 14:48
Signed-off-by: Ryan Richard <richardry@vmware.com>
Signed-off-by: Ryan Richard <richardry@vmware.com>
Signed-off-by: Ryan Richard <richardry@vmware.com>
Signed-off-by: Ryan Richard <richardry@vmware.com>
@netlify

netlify Bot commented Aug 27, 2026

Copy link
Copy Markdown

Deploy Preview for pinniped-dev canceled.

Name Link
🔨 Latest commit f81d65b
🔍 Latest deploy log https://app.netlify.com/projects/pinniped-dev/deploys/6a91d772a2fce60008275c3e

@aabusair aabusair closed this Aug 28, 2026
@aabusair aabusair reopened this Aug 28, 2026
Fix some test expectations and also fix the production code in
impersonator.go to make them compatible with both Go 1.27 and also
with older versions, e.g. Go 1.26. With these changes, all unit
tests pass when run with either Go 1.26 or Go 1.27.

Signed-off-by: Ryan Richard <richardry@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants