chore: bump go to 1.25.12 and k8s.io libs to v0.35.6

AN
3mo ago
+353-292

Upgrades go.mod's go directive, k8s.io/{api,apimachinery,client-go} to v0.35.6, and transitively consistent sigs.k8s.io/k8s.io dependencies (controller-runtime v0.23.3, etc.). Updates the GitHub Actions Go workflow to match.

Switches crossplane-runtime from v1.16.0 to crossplane-runtime/v2 v2.3.3, since v1 never implements the Apply method that controller-runtime v0.22+ requires on client.Client, while v2 already does. Adds a replace for sigs.k8s.io/apiserver-runtime to a patched fork so cluster-gateway's transitive dependency compiles against the newer k8s libs.


Summary by cubic

Upgrade Go to 1.25.12 and Kubernetes libraries to v0.35.6. Aligns with sigs.k8s.io/controller-runtime v0.23.3 and switches to github.com/crossplane/crossplane-runtime/v2 to support client.Apply.

  • Dependencies

    • Bump Go toolchain to 1.25.12 and update GitHub Actions GO_VERSION.
    • Upgrade k8s.io/{api,apimachinery,client-go,apiextensions-apiserver,apiserver,component-base} to v0.35.6.
    • Upgrade sigs.k8s.io/controller-runtime to v0.23.3, sigs.k8s.io/controller-tools to v0.20.0, and sigs.k8s.io/yaml to v1.6.0.
    • Replace github.com/crossplane/crossplane-runtime with github.com/crossplane/crossplane-runtime/v2 v2.3.3.
    • Refresh tests: github.com/onsi/ginkgo/v2 v2.27.2, github.com/onsi/gomega v1.38.3, github.com/stretchr/testify v1.11.1.
    • Add temporary replace entries to github.com/anishbista60/* for github.com/kubevela/{pkg,workflow,terraform-controller} and github.com/oam-dev/cluster-gateway; drop the previous sigs.k8s.io/apiserver-runtime replace now that upstream uses k8s.io/apiserver.
  • Migration

    • Update imports from github.com/crossplane/crossplane-runtime/pkg/... to github.com/crossplane/crossplane-runtime/v2/pkg/....
    • Use Go 1.25.12 locally and run go mod tidy.