Skip to content

Commit

Permalink
k8s.io/utils/pointer is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
adriananeci committed Aug 7, 2023
1 parent aa2619e commit d2f23d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions controllers/asosecret_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
"k8s.io/client-go/tools/record"
"k8s.io/utils/pointer"
"k8s.io/utils/ptr"
infrav1 "sigs.k8s.io/cluster-api-provider-azure/api/v1beta1"
"sigs.k8s.io/cluster-api-provider-azure/azure/scope"
"sigs.k8s.io/cluster-api-provider-azure/util/aso"
Expand Down Expand Up @@ -226,7 +226,7 @@ func (asos *ASOSecretReconciler) Reconcile(ctx context.Context, req ctrl.Request
Kind: gvk.Kind,
Name: cluster.GetName(),
UID: cluster.GetUID(),
Controller: pointer.Bool(true),
Controller: ptr.To(true),
}

newASOSecret.OwnerReferences = []metav1.OwnerReference{owner}
Expand Down
4 changes: 2 additions & 2 deletions controllers/asosecret_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"k8s.io/apimachinery/pkg/types"
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
"k8s.io/client-go/tools/record"
"k8s.io/utils/pointer"
"k8s.io/utils/ptr"
infrav1 "sigs.k8s.io/cluster-api-provider-azure/api/v1beta1"
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
ctrl "sigs.k8s.io/controller-runtime"
Expand Down Expand Up @@ -349,7 +349,7 @@ func getASOSecret(cluster *clusterv1.Cluster, changes ...func(secret *corev1.Sec
Kind: cluster.GetObjectKind().GroupVersionKind().Kind,
Name: cluster.GetName(),
UID: cluster.GetUID(),
Controller: pointer.Bool(true),
Controller: ptr.To(true),
},
},
},
Expand Down

0 comments on commit d2f23d8

Please sign in to comment.