Skip to content

Commit

Permalink
chore: Change from k8s.io/utils/pointer to k8s.io/utils/ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Oct 4, 2023
1 parent 9028c13 commit 5e02388
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/util/cmd_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/utils/pointer"
"k8s.io/utils/ptr"
)

type SetupOptions struct {
Expand Down Expand Up @@ -194,7 +194,7 @@ func createJob(cmd *cobra.Command, conf *config.Global, actionName string) error
},
},
Spec: batchv1.JobSpec{
ActiveDeadlineSeconds: pointer.Int64(int64(24 * time.Hour.Seconds())),
ActiveDeadlineSeconds: ptr.To(int64(24 * time.Hour.Seconds())),
Template: corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Annotations: map[string]string{
Expand All @@ -205,7 +205,7 @@ func createJob(cmd *cobra.Command, conf *config.Global, actionName string) error
},
Spec: corev1.PodSpec{
RestartPolicy: corev1.RestartPolicyOnFailure,
TerminationGracePeriodSeconds: pointer.Int64(0),
TerminationGracePeriodSeconds: ptr.To(int64(0)),
Containers: []corev1.Container{
{
Name: "kubedb",
Expand Down

0 comments on commit 5e02388

Please sign in to comment.