Skip to content

Commit

Permalink
use the metal-lib pointer package for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
ftl committed Oct 9, 2024
1 parent 7d62858 commit d301fb7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/controller/audit/actuator.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import (
"k8s.io/apimachinery/pkg/runtime/serializer"
"k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/utils/clock"
"k8s.io/utils/ptr"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/manager"

Expand Down Expand Up @@ -561,7 +560,7 @@ func seedObjects(auditConfig *v1alpha1.AuditConfig, secrets map[string]*corev1.S
},
},
Spec: policyv1.PodDisruptionBudgetSpec{
MinAvailable: ptr.To(intstr.FromInt32(1)),
MinAvailable: pointer.Pointer(intstr.FromInt32(1)),
Selector: auditwebhookStatefulSet.Spec.Selector,
},
},
Expand Down

0 comments on commit d301fb7

Please sign in to comment.