gardener / etcd-druid

An etcd operator to configure, provision, reconcile and monitor etcd clusters.
Apache License 2.0
70 stars 49 forks source link

Use pointer utility pkg `k8s.io/utils/ptr` and remove the deprecated pkg `k8s.io/utils/pointer` #863

Closed anveshreddy18 closed 1 month ago

anveshreddy18 commented 1 month ago

How to categorize this issue?

/area quality /kind enhancement

What would you like to be added:

The pkg "k8s.io/utils/pointer" is deprecated starting from k8s.io/utils version v0.0.0-20240502163921-fe8a2dddb1d0 which is our current version in master. It is recommended to use the alternate pkg "k8s.io/utils/ptr" from here on.

Remove the deprecated package and use the recommended package for pointer related operations.

Check the release timeline for k8s.io/utils here

Why is this needed: The support for "k8s.io/utils/pointer" pkg will be removed going further as it is currently in deprecated state. So it's best to use the newly introduced pkg "k8s.io/utils/ptr" for pointer operations.