chore: bump go to 1.25.12 and k8s.io libs to v0.35.6
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-runtimeto v0.23.3,sigs.k8s.io/controller-toolsto v0.20.0, andsigs.k8s.io/yamlto v1.6.0. - Replace
github.com/crossplane/crossplane-runtimewithgithub.com/crossplane/crossplane-runtime/v2v2.3.3. - Refresh tests:
github.com/onsi/ginkgo/v2v2.27.2,github.com/onsi/gomegav1.38.3,github.com/stretchr/testifyv1.11.1. - Add temporary
replaceentries togithub.com/anishbista60/*forgithub.com/kubevela/{pkg,workflow,terraform-controller}andgithub.com/oam-dev/cluster-gateway; drop the previoussigs.k8s.io/apiserver-runtimereplace now that upstream usesk8s.io/apiserver.
- Bump Go toolchain to 1.25.12 and update GitHub Actions
-
Migration
- Update imports from
github.com/crossplane/crossplane-runtime/pkg/...togithub.com/crossplane/crossplane-runtime/v2/pkg/.... - Use Go 1.25.12 locally and run
go mod tidy.
- Update imports from