Skip to content

fix(deps): update kubernetes monorepo to v0.36.4 - #467

Open
red-hat-konflux-kflux-prd-rh02[bot] wants to merge 1 commit into
mainfrom
konflux/mintmaker/main/kubernetes-monorepo
Open

fix(deps): update kubernetes monorepo to v0.36.4#467
red-hat-konflux-kflux-prd-rh02[bot] wants to merge 1 commit into
mainfrom
konflux/mintmaker/main/kubernetes-monorepo

Conversation

@red-hat-konflux-kflux-prd-rh02

@red-hat-konflux-kflux-prd-rh02 red-hat-konflux-kflux-prd-rh02 Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
k8s.io/api v0.35.7v0.36.4 age confidence
k8s.io/apiextensions-apiserver v0.35.7v0.36.4 age confidence
k8s.io/apimachinery v0.36.3v0.36.4 age confidence
k8s.io/apiserver v0.35.7v0.36.4 age confidence
k8s.io/client-go v0.35.7v0.36.4 age confidence
k8s.io/component-base v0.35.7v0.36.4 age confidence

Warning

Some dependencies could not be looked up. Check the warning logs for more information.


Release Notes

kubernetes/api (k8s.io/api)

v0.36.4

Compare Source

v0.36.3

Compare Source

v0.36.2

Compare Source

v0.36.1

Compare Source

v0.36.0

Compare Source

v0.35.8

Compare Source

kubernetes/apiextensions-apiserver (k8s.io/apiextensions-apiserver)

v0.36.4

Compare Source

v0.36.3

Compare Source

v0.36.2

Compare Source

v0.36.1

Compare Source

v0.36.0

Compare Source

v0.35.8

Compare Source

kubernetes/apimachinery (k8s.io/apimachinery)

v0.36.4

Compare Source

kubernetes/apiserver (k8s.io/apiserver)

v0.36.4

Compare Source

v0.36.3

Compare Source

v0.36.2

Compare Source

v0.36.1

Compare Source

v0.36.0

Compare Source

v0.35.8

Compare Source

kubernetes/client-go (k8s.io/client-go)

v0.36.4

Compare Source

v0.36.3

Compare Source

v0.36.2

Compare Source

v0.36.1

Compare Source

v0.36.0

Compare Source

v0.35.8

Compare Source

kubernetes/component-base (k8s.io/component-base)

v0.36.4

Compare Source

v0.36.3

Compare Source

v0.36.2

Compare Source

v0.36.1

Compare Source

v0.36.0

Compare Source

v0.35.8

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

To execute skipped test pipelines write comment /ok-to-test.


Documentation

Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.

@ambient-code

ambient-code Bot commented Aug 4, 2026

Copy link
Copy Markdown

Automated Review Summary — ⚠️ CI FAILING

go.mod changes: Yes — bumps the entire kubernetes monorepo from v0.35.6 → v0.36.3 (k8s.io/api, k8s.io/apimachinery, k8s.io/apiextensions-apiserver, k8s.io/apiserver, k8s.io/client-go, k8s.io/component-base). Single go.mod in the repo, no sub-project updates needed.

CI status: 🔴 ALL CI FAILING — e2e-tests, Lint Code, Run Tests, Konflux pipeline all FAILED.


Root cause analysis

This is a minor k8s version bump (v0.35 → v0.36), not a patch bump.

Two independent failures were identified:

1. Go version incompatibility (lint failure)

Error: can't load config: the Go language version (go1.25) used to build golangci-lint is lower than the targeted Go version (1.26.0)

k8s v0.36.x modules require Go 1.26.0 (confirmed in their go.mod). Our project currently declares go 1.25.8. Bumping k8s to v0.36.x forces the entire module graph to require Go 1.26+. This would require updating our go.mod toolchain/go directive and our CI Go version.

2. make manifests failure (controller-gen incompatibility)

make: *** [Makefile:101: manifests] Error 1

k8s v0.36.0 removed deprecated API versions (v2beta1/v2beta2 for HPA, etc.) and introduced new API types. The controller-gen version pinned in our Makefile is incompatible with the new k8s API types in v0.36.x, causing CRD/RBAC generation to fail.


Alternative: Bugfix bump v0.35.7 available

k8s v0.35.7 is available and stays on Go 1.25, meaning it would be compatible with our current toolchain with no Go version changes required. The removed beta APIs (autoscaling/v2beta1, autoscaling/v2beta2) are not removed in v0.35.x.


Recommendation

@bennyz @bkhizgiy — this PR should not be merged as-is. The k8s v0.36.x bump is a minor version upgrade that:

  1. Requires Go 1.26 — coordinated toolchain upgrade needed (go.mod, CI YAML, Containerfile.toolchain)
  2. Breaks CRD generation — controller-gen must be upgraded to a version supporting k8s v0.36 APIs
  3. Removes deprecated APIs — autoscaling/v2beta1 and v2beta2 are removed from vendor (verify no code references them)

If no security vulnerabilities are driving this specific bump, the safer path is to bump to v0.35.7 (current minor bugfix) which requires no Go toolchain changes. I can prepare that commit if desired.

If there are CVEs or security fixes specifically in v0.36.x that require this upgrade, please note them so the team can plan the coordinated Go 1.26 + controller-gen upgrade properly.

@red-hat-konflux-kflux-prd-rh02
red-hat-konflux-kflux-prd-rh02 Bot force-pushed the konflux/mintmaker/main/kubernetes-monorepo branch 20 times, most recently from 211870c to c678cb0 Compare August 11, 2026 20:08
@red-hat-konflux-kflux-prd-rh02
red-hat-konflux-kflux-prd-rh02 Bot force-pushed the konflux/mintmaker/main/kubernetes-monorepo branch 8 times, most recently from 0381c74 to 8aff0a4 Compare August 15, 2026 12:09
@red-hat-konflux-kflux-prd-rh02
red-hat-konflux-kflux-prd-rh02 Bot force-pushed the konflux/mintmaker/main/kubernetes-monorepo branch 15 times, most recently from 48d6e35 to 27ffd90 Compare August 22, 2026 12:09
@red-hat-konflux-kflux-prd-rh02
red-hat-konflux-kflux-prd-rh02 Bot force-pushed the konflux/mintmaker/main/kubernetes-monorepo branch 4 times, most recently from 9c8ce5b to 2398667 Compare August 23, 2026 16:09
@red-hat-konflux-kflux-prd-rh02 red-hat-konflux-kflux-prd-rh02 Bot changed the title fix(deps): update kubernetes monorepo to v0.36.3 fix(deps): update kubernetes monorepo to v0.36.4 Aug 23, 2026
@red-hat-konflux-kflux-prd-rh02
red-hat-konflux-kflux-prd-rh02 Bot force-pushed the konflux/mintmaker/main/kubernetes-monorepo branch 2 times, most recently from 8ab50e9 to 70a4936 Compare August 24, 2026 12:08
bennyz pushed a commit to bennyz/automotive-dev-operator that referenced this pull request Aug 24, 2026
sigs.k8s.io/controller-runtime v0.24.1 deprecates scheme.Builder and
Manager.GetEventRecorderFor, which golangci-lint's staticcheck (SA1019)
fails the build on. This was blocking PR centos-automotive-suite#485 (controller-runtime bump),
which is itself required for PR centos-automotive-suite#467 (kubernetes-monorepo bump to
v0.36.4) to compile against a compatible controller-runtime.

- api/v1alpha1/groupversion_info.go: inline the deprecated scheme.Builder
  locally per its own migration guidance, so api/v1alpha1 only depends on
  k8s.io/apimachinery.
- cmd/main.go: GetEventRecorderFor -> GetEventRecorder.
- Migrate all Recorder fields (imagebuild, containerbuild, imagereseal,
  scheduledimagebuild controllers, catalogimage audit recorder) from the
  legacy corev1-based record.EventRecorder to the events.k8s.io/v1-based
  events.EventRecorder, updating call sites to the new Eventf(regarding,
  related, eventtype, reason, action, note, args...) signature.
- Wrap test fakes with record.NewEventRecorderAdapter so
  record.NewFakeRecorder still satisfies the new interface.

Assisted-by: Claude-Sonnet-5
Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>
bennyz added a commit to bennyz/automotive-dev-operator that referenced this pull request Aug 24, 2026
sigs.k8s.io/controller-runtime v0.24.1 deprecates scheme.Builder and
Manager.GetEventRecorderFor, which golangci-lint's staticcheck (SA1019)
fails the build on. This was blocking PR centos-automotive-suite#485 (controller-runtime bump),
which is itself required for PR centos-automotive-suite#467 (kubernetes-monorepo bump to
v0.36.4) to compile against a compatible controller-runtime.

- api/v1alpha1/groupversion_info.go: inline the deprecated scheme.Builder
  locally per its own migration guidance, so api/v1alpha1 only depends on
  k8s.io/apimachinery.
- cmd/main.go: GetEventRecorderFor -> GetEventRecorder.
- Migrate all Recorder fields (imagebuild, containerbuild, imagereseal,
  scheduledimagebuild controllers, catalogimage audit recorder) from the
  legacy corev1-based record.EventRecorder to the events.k8s.io/v1-based
  events.EventRecorder, updating call sites to the new Eventf(regarding,
  related, eventtype, reason, action, note, args...) signature.
- Wrap test fakes with record.NewEventRecorderAdapter so
  record.NewFakeRecorder still satisfies the new interface.

Assisted-by: Claude-Sonnet-5
Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>
Signed-off-by: red-hat-konflux-kflux-prd-rh02 <190377777+red-hat-konflux-kflux-prd-rh02[bot]@users.noreply.github.com>
@red-hat-konflux-kflux-prd-rh02
red-hat-konflux-kflux-prd-rh02 Bot force-pushed the konflux/mintmaker/main/kubernetes-monorepo branch from 70a4936 to 8859011 Compare August 26, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants