Skip to content

chore(deps): Bump controller-runtime to 0.23.3 and k8s.io/* to 0.35.2#264

Open
pdettori wants to merge 2 commits intokagenti:mainfrom
pdettori:chore/bundled-k8s-controller-runtime-bump
Open

chore(deps): Bump controller-runtime to 0.23.3 and k8s.io/* to 0.35.2#264
pdettori wants to merge 2 commits intokagenti:mainfrom
pdettori:chore/bundled-k8s-controller-runtime-bump

Conversation

@pdettori
Copy link
Copy Markdown
Contributor

@pdettori pdettori commented Apr 8, 2026

Summary

Bundles three dependabot PRs (#230, #231, #233) into a single coordinated upgrade. These dependencies are version-coupled and must be upgraded together — individual PRs fail CI due to version skew.

Dependency bumps:

Dependency From To
sigs.k8s.io/controller-runtime 0.20.0 0.23.3
k8s.io/api 0.32.0 0.35.2
k8s.io/apimachinery 0.32.0 0.35.2
k8s.io/client-go 0.32.0 0.35.2

Source fixes for controller-runtime v0.23 breaking changes:

  • WebhookManagedBy now takes the object as a generic type parameter (replaces .For() chain)
  • Webhook validator methods now use concrete types (*AgentCard, *AgentRuntime) instead of runtime.Object
  • Removed "wrong object type" tests — type safety is now enforced at compile time by generics

Go version: Bumped to 1.25.0 (required by controller-runtime 0.23.x). CI uses go-version-file: go.mod so this is handled automatically.

Closes #230, #231, #233

Test plan

  • go build ./... passes locally
  • go test ./... passes locally (all unit tests, excluding e2e which requires Kind)
  • CI: Build job passes
  • CI: Unit Tests pass
  • CI: Lint passes
  • CI: E2E Tests pass

🤖 Generated with Claude Code

@pdettori pdettori requested a review from a team as a code owner April 8, 2026 19:05
Bundles the following dependabot PRs into a single coordinated upgrade:
- sigs.k8s.io/controller-runtime 0.20.0 → 0.23.3 (kagenti#233)
- k8s.io/api 0.32.0 → 0.35.2 (kagenti#230)
- k8s.io/apimachinery 0.32.0 → 0.35.2 (kagenti#231)
- k8s.io/client-go 0.32.0 → 0.35.2

These dependencies must be upgraded together due to version coupling.

Breaking changes in controller-runtime v0.23:
- WebhookManagedBy now takes the object as a second argument
  (generic type parameter replaces .For() chain)
- Webhook validators use concrete types instead of runtime.Object
- Go 1.25.0 required (toolchain auto-download supported)

Source fixes:
- agentcard_webhook.go: Updated WebhookManagedBy call and validator
  signatures to use *AgentCard concrete type
- agentruntime_webhook.go: Updated WebhookManagedBy call and validator
  signatures to use *AgentRuntime concrete type
- Removed "wrong object type" tests (type safety now enforced at
  compile time by generics)

CI fixes:
- Bump golangci-lint from v1.64.8 to v2.11.4 (v1 built with Go 1.24
  cannot lint Go 1.25 code)
- Migrate .golangci.yml to v2 format via `golangci-lint migrate`

Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Paolo Dettori <dettori@us.ibm.com>
@pdettori pdettori force-pushed the chore/bundled-k8s-controller-runtime-bump branch from 0f90774 to f319243 Compare April 8, 2026 19:47
@pdettori pdettori requested a review from a team as a code owner April 8, 2026 19:47
golangci-lint-action v6 does not support golangci-lint v2.x. The
error was: "invalid version string 'v2.11.4', golangci-lint v2 is
not supported by golangci-lint-action v6, you must update to
golangci-lint-action v7."

Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Paolo Dettori <dettori@us.ibm.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.

1 participant