Skip to content

Commit

Permalink
avoid deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkarlsen committed Dec 19, 2023
1 parent b836a7f commit 10a4c78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/controller/jobutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit 10a4c78

Please sign in to comment.