chore: depr. pointer pkg replacement for the csr

Kubernetes-commit: 6c3146e3557e1de3d617f49d0b64ee380a42a8b1
This commit is contained in:
PatrickLaabs
2025-07-03 11:34:13 +02:00
committed by Kubernetes Publisher
parent 7d9d3036fb
commit 286cc8368b

View File

@@ -39,7 +39,7 @@ import (
watchtools "k8s.io/client-go/tools/watch"
certutil "k8s.io/client-go/util/cert"
"k8s.io/klog/v2"
"k8s.io/utils/pointer"
"k8s.io/utils/ptr"
)
// RequestCertificate will either use an existing (if this process has run
@@ -102,7 +102,7 @@ func RequestCertificateWithContext(ctx context.Context, client clientset.Interfa
}
func DurationToExpirationSeconds(duration time.Duration) *int32 {
return pointer.Int32(int32(duration / time.Second))
return ptr.To(int32(duration / time.Second))
}
func ExpirationSecondsToDuration(expirationSeconds int32) time.Duration {