Upgrade kctrl CLI dependencies to target Kubernetes v0.36.0#1831
Merged
joaopapereira merged 1 commit intoMay 20, 2026
Merged
Conversation
aroradaman
approved these changes
May 19, 2026
14da49e to
22786b3
Compare
Signed-off-by: Sameer <sameer.khan@broadcom.com> Co-authored-by: Cursor <cursoragent@cursor.com>
22786b3 to
80ab33f
Compare
Contributor
Author
🚀 CI Update: Full Test Matrix & CLI Validation Passed!The entire validation pipeline for the 🧪 Test Suite Run Matrix
All unit checks, file hygiene requirements, and cross-version cluster integrations passed with zero failures. The changes are fully verified and ready for maintainer review. 🚢 |
Contributor
Author
|
@joaopapereira Please review. |
praveenrewar
approved these changes
May 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
Following the recent root module dependency upgrade #1829, this PR brings the cli/ sub-module context (kctrl) into complete alignment by upgrading its core Kubernetes client libraries to v0.36.0.
Because client-go introduced breaking structural interface changes in this release window (purging long-deprecated alpha/beta groups and introducing new groups), the internal mock client layout has been refactored to remain compliant with the upstream kubernetes.Interface contract.
Dependency Updates
Key Changes
Toolchain Optimization: Upgraded the Go runtime block from 1.25.7 to 1.26.3 inside cli/go.mod to match the core controller requirements.
Stale API Purge: Removed references and structural tracking for 6 dropped packages inside cli/pkg/kctrl/local/min_core_client.go that were removed in the v0.36.0 lifecycle (e.g., autoscalingv2beta1, resourcev1alpha2).
Contract Compliance: Implemented missing mock methods on MinCoreClient to fulfill the updated client-go interface dependencies added CoordinationV1alpha2(), ResourceV1(), ResourceV1alpha3(), ResourceV1beta1(), and ResourceV1beta2()
Verification Run
All local validation hooks executed successfully within the cli/ directory workspace:
go mod tidyresolved the dependency tree cleanly without path conflicts.go mod vendorsuccessfully synchronized the external modules.go build -o /tmp/kctrl ./cmd/kctrl/...completed with a clean exit code and zero compilation warnings.Validation & Compatibility Matrix
To verify backward compatibility and structural stability following the
v0.36.0library upgrades, the complete testing pipeline—including unit tests, validation checks, and E2E integration suites—was executed successfully across our supported environment window:test-gh / Run all testsv1.32.13test-gh / Run all testsv1.33.12test-gh / Run all testsv1.34.8test-gh / Run all testsv1.35.5test-gh / Run all testsv1.36.1Kind Cluster E2E testskinder)v1.36.xThe successful completion of the dedicated
test-kctrl-ghmatrix confirms that thekctrlbinary compiles cleanly, handles configuration generation flawlessly, and suffers zero regressions against legacy or cutting-edge Kubernetes control planes.