LuciferYang opened a new pull request, #2839:
URL: https://github.com/apache/uniffle/pull/2839

   ### What changes were proposed in this pull request?
   
   This picks up #2723 from @zuston and keeps its commits: `go 1.25.0` in 
go.mod, k8s.io/* 0.24 to 0.35, controller-runtime 0.12 to 0.23, controller-gen 
0.12.1 to 0.20.0 and goimports 0.15.0 to 0.41.0. In controller-runtime 0.23 the 
manager's namespace and sync period are cache options, so the controller config 
sets them there.
   
   On top of it:
   
   - Bump golang.org/x/net from 0.49.0 to 0.58.0, the last release that still 
builds with Go 1.25 (0.59 needs 1.26).
   - Switch `hack/update-codegen.sh` to `kube_codegen.sh`. code-generator 0.35 
removed `generate-groups.sh`, so `make build` stopped at code generation. The 
clientset, listers, informers and CRD are regenerated.
   - Fix four `klog.Errorf` calls whose arguments don't match the format 
string, which `go vet` reports, and a test that still used 
`ResourceRequirements` for a PVC.
   - Build with Go 1.27 in CI and in `hack/Dockerfile`, which still used 
`golang:1.17`.
   
   ### Why are the changes needed?
   
   The operator only builds with Go 1.19 (#2722), which went out of support in 
2023. This also closes the 8 Dependabot alerts on the operator: 7 on 
golang.org/x/net (the newest fix is in 0.55.0) and 1 on golang.org/x/oauth2 
(fixed in 0.27.0, now at 0.34.0).
   
   It supersedes #2723 and Dependabot's #2546.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Building the operator needs Go 1.25 or later. The CRD is regenerated by 
controller-gen 0.20 from the Kubernetes 1.35 API types, so update it with 
`kubectl replace` when upgrading the operator, as docs/operator/install.md 
describes.
   
   ### How was this patch tested?
   
   The new `TestCompleteManagerOptions` checks that the sync period, retry 
period and namespace flags end up in the manager options. It fails if any of 
them is dropped.
   
   CI builds with Go 1.27. I also built and vetted the module with Go 1.25.14, 
the oldest version go.mod allows, and ran its unit tests (not the envtest 
suites) there.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to