With Go 1.26, the modernize/newexpr linter suggests replacing ptr.To(x) (from k8s.io/utils/ptr) with the built-in new(x). Temporarily disabled this lint rule in .golangci.yml to unblock the v0.36.0-beta.0 dependency bump.
Follow-up work:
- Replace all ~128 occurrences of ptr.To(x) with new(x) across the codebase
- Remove the newexpr entry from modernize.disable in .golangci.yml
With Go 1.26, the modernize/newexpr linter suggests replacing ptr.To(x) (from k8s.io/utils/ptr) with the built-in new(x). Temporarily disabled this lint rule in .golangci.yml to unblock the v0.36.0-beta.0 dependency bump.
Follow-up work: