chore: bump k8s deps to v0.35.6 line and controller-runtime to v0.23.3
Closed
AN
2mo ago+356+356+012345678901234567890123456789-284-284-012345678901234567890123456789
- Same as title
Summary by cubic
Upgrade Kubernetes deps to v0.35.6 and sigs.k8s.io/controller-runtime to v0.23.3. Adds Apply support to multicluster clients, drops sigs.k8s.io/apiserver-runtime, modernizes CI/lint, and fixes a vet error in an external server test.
-
Dependencies
- Bump
k8s.io/{api,apimachinery,apiserver,client-go,kubectl,component-base}to v0.35.6. - Update
sigs.k8s.io/controller-runtimeto v0.23.3 andsigs.k8s.io/yamlto v1.6.0; adopt the newapiutil.RESTClientForGVKsignature (addsisUnstructured). - Remove
sigs.k8s.io/apiserver-runtime;util/singletonnow usesk8s.io/apiserver/pkg/server. Replacegithub.com/oam-dev/cluster-gatewaywithgithub.com/anishbista60/cluster-gateway@06bb4f3to drop the dependency transitively. - Tooling: module
goset to 1.25.12; CI uses Go 1.26.0 andgolangci-lint-action@v7withgolangci-lintv2.12.2;.golangci.ymlmigrated to v2;make lintuses$(GOLANGCILINT)installed viago install. - Tests: replace
fmt.Errorfwitherrors.Newto satisfygo vet.
- Bump
-
Migration
- New Apply methods:
Client.Apply,SubResourceClient.Apply, andStatusWriter.Apply. They work for the local cluster only; remote cluster calls return an error. - Rebuild with Go 1.25+ and run
go mod tidy.
- New Apply methods: