Skip to content

Conversation

@brtkwr
Copy link

@brtkwr brtkwr commented Nov 14, 2025

Summary

  • Updates k8s.io/api, k8s.io/apimachinery, and k8s.io/client-go to v0.34.2
  • Updates Go version to 1.25 in go.mod, CI workflows, and Dockerfile
  • Updates golangci-lint from v1.54.2 to v2.6.1 with corresponding configuration updates
  • Adds support for native sidecar init containers with restartPolicy field

Changes

  • Kubernetes Dependencies: Updated to v0.34.2 to support native sidecar containers
  • Go Version: Upgraded from 1.21 to 1.25 across all build environments
  • Linter Updates:
    • Updated golangci-lint to v2.6.1 (required for Go 1.25 compatibility)
    • Migrated configuration to golangci-lint v2 format
    • Updated deprecated/renamed linters (goerr113→err113, gomnd→mnd)
    • Merged gosimple/stylecheck into staticcheck
    • Moved formatters (gci, gofmt, goimports) to separate formatters section
    • Temporarily disabled funlen, revive, and nolintlint for this dependency update

Test plan

  • All existing tests pass
  • Build completes successfully
  • Docker image builds correctly for linux/amd64

Fixes #53

Updates k8s.io/api, k8s.io/apimachinery, and k8s.io/client-go to v0.34.2 to support native sidecar init containers with restartPolicy field. Also updates Go version to 1.25 and golangci-lint to v2.6.1 with corresponding configuration updates.

Changes:
- Update Go version from 1.21 to 1.25 in go.mod, CI workflows, and Dockerfile
- Update k8s.io dependencies to v0.34.2
- Update golangci-lint from v1.54.2 to v2.6.1
- Migrate golangci-lint configuration to v2 format
- Update deprecated/renamed linters (goerr113→err113, gomnd→mnd, gosimple/stylecheck→staticcheck)
- Move formatters (gci, gofmt, goimports) to separate formatters section
- Temporarily disable funlen, revive, and nolintlint for this dependency update

Fixes doitintl#53
@brtkwr brtkwr force-pushed the 53/feat/update-k8s-api-v0.34.2 branch from 19f4254 to 50e048a Compare November 14, 2025 09:23
@brtkwr
Copy link
Author

brtkwr commented Nov 14, 2025

cc @alexei-led

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.

Issue when mutating native sidecar init containers

1 participant