diff --git a/internal/controller/jobutil.go b/internal/controller/jobutil.go index 0429df7..93750d6 100644 --- a/internal/controller/jobutil.go +++ b/internal/controller/jobutil.go @@ -10,7 +10,7 @@ import ( batchv1 "k8s.io/api/batch/v1" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/utils/pointer" + "k8s.io/utils/ptr" ) const ( @@ -111,7 +111,7 @@ func createJobSpec(migration *flywayv1alpha1.Migration) *batchv1.Job { }, }, Spec: batchv1.JobSpec{ - BackoffLimit: pointer.Int32(2), + BackoffLimit: ptr.To[int32](2), Template: corev1.PodTemplateSpec{ Spec: corev1.PodSpec{ InitContainers: []corev1.Container{