chore: bump k8s deps to v0.35.6 line and controller-runtime to v0.23.3

Closed
AN
2mo ago
+356-284
  • 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-runtime to v0.23.3 and sigs.k8s.io/yaml to v1.6.0; adopt the new apiutil.RESTClientForGVK signature (adds isUnstructured).
    • Remove sigs.k8s.io/apiserver-runtime; util/singleton now uses k8s.io/apiserver/pkg/server. Replace github.com/oam-dev/cluster-gateway with github.com/anishbista60/cluster-gateway@06bb4f3 to drop the dependency transitively.
    • Tooling: module go set to 1.25.12; CI uses Go 1.26.0 and golangci-lint-action@v7 with golangci-lint v2.12.2; .golangci.yml migrated to v2; make lint uses $(GOLANGCILINT) installed via go install.
    • Tests: replace fmt.Errorf with errors.New to satisfy go vet.
  • Migration

    • New Apply methods: Client.Apply, SubResourceClient.Apply, and StatusWriter.Apply. They work for the local cluster only; remote cluster calls return an error.
    • Rebuild with Go 1.25+ and run go mod tidy.