Skip to content

Commit

Permalink
use ptr instead of pointer
Browse files Browse the repository at this point in the history
Signed-off-by: sivchari <[email protected]>
  • Loading branch information
sivchari committed May 29, 2024
1 parent 2568aa2 commit f68fde5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/apis/core/v1alpha3/cluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit f68fde5

Please sign in to comment.