Skip to content

Upgrade to Kubernetes 0.37 libraries and controller-runtime 0.25 #1146

Closed

Description

@privateip

Parent: #1144

Deliverable: Galactic builds and passes CI on Kubernetes 0.37 libraries and controller-runtime 0.25.

The instrumentation library requires these versions as a minimum, so Galactic can't import it until it has upgraded. The upgrade is worth doing on its own, and is tracked here only because it blocks the rest of the epic.

Work items:

  • Upgrade the Kubernetes and controller-runtime modules, and the libraries that move with them.
  • Regenerate generated code and manifests through the project targets.
  • Fix any API changes in reconcilers, webhooks, and the bare-client binaries.

Dependencies: none.

Acceptance: Lint, build, unit and end-to-end suites pass on the new versions. The lab comes up and its verification checks pass, with no change in reconciler behavior.

Activity

  1. added
    dependencies
    on Oct 27, 2026
  2. added theissue type on Oct 27, 2026
  3. self-assigned this
    on Oct 28, 2026
  4. privateip commented on Oct 28, 2026

    @privateip
    ContributorAuthor

    Verdict: valid. On main at 69640a5, go.mod pins k8s.io/* v0.36.x and sigs.k8s.io/controller-runtime v0.24.1, below the minimum the instrumentation library needs. examples/edge-provider pins the same versions.

    Trial upgrade (scratch worktree, same revision): moved k8s.io/{api,apimachinery,client-go,apiextensions-apiserver,cri-api} to v0.37.1 and controller-runtime to v0.25.2, then ran go mod tidy in the root module and both example modules.

    • go build ./... and go vet ./... pass with no source changes. Every manager already calls the GetEventRecorder API, which is the only breaking API change in controller-runtime 0.25 that touches Galactic.
    • golangci-lint reports no issues in the root module or either example module.
    • go test -race ./api/... ./cmd/... ./internal/... passes, as do task test:edge-provider and task test:looking-glass-client.
    • task generate:crd with controller-gen v0.23.0 (the release built on k8s.io/* v0.37) leaves every CRD schema and deepcopy file unchanged. Only the controller-gen.kubebuilder.io/version annotation moves.
  5. privateip commented on Oct 28, 2026

    @privateip
    ContributorAuthor

    Approved plan (branch fix/issue-1146):

    1. Move k8s.io/{api,apimachinery,client-go,apiextensions-apiserver,cri-api} to v0.37.1 and sigs.k8s.io/controller-runtime to v0.25.2 in the root module and examples/edge-provider, then run go mod tidy in all three modules.
    2. Regenerate CRDs and deepcopy code with task generate:crd using controller-gen v0.23.0. Only the generator-version annotation changes.
    3. No Go source changes.

    Tests: lint, build, the race-enabled unit suite and both example-module test tasks pass locally. CI runs the e2e suite on the PR.

    Risk: reconciler behavior should not change. The controller-runtime 0.25 breaking changes are the k8s.io bump and the new event recorder interface, which Galactic already uses. The lab check from the acceptance criteria runs after the PR opens and is tracked here until then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

dependencies

Type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions