From f68fde5e667b24cc29ea1a171a7324a82bf3dcfa Mon Sep 17 00:00:00 2001 From: sivchari Date: Wed, 29 May 2024 16:50:44 +0900 Subject: [PATCH] use ptr instead of pointer Signed-off-by: sivchari --- internal/apis/core/v1alpha3/cluster_types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/apis/core/v1alpha3/cluster_types.go b/internal/apis/core/v1alpha3/cluster_types.go index 2421a2796242..9e106ce3492e 100644 --- a/internal/apis/core/v1alpha3/cluster_types.go +++ b/internal/apis/core/v1alpha3/cluster_types.go @@ -23,7 +23,7 @@ import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/utils/pointer" + "k8s.io/utils/ptr" capierrors "sigs.k8s.io/cluster-api/errors" ) @@ -257,7 +257,7 @@ func (in FailureDomains) FilterControlPlane() FailureDomains { func (in FailureDomains) GetIDs() []*string { ids := make([]*string, 0, len(in)) for id := range in { - ids = append(ids, pointer.String(id)) + ids = append(ids, ptr.To(id)) } return ids }