Skip to content

Commit

Permalink
ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya authored and dependabot[bot] committed Dec 20, 2023
1 parent 2bbe8db commit 9b476fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/preflight/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
k8sclient "k8s.io/client-go/kubernetes"
"k8s.io/client-go/kubernetes/scheme"
"k8s.io/utils/pointer"
"k8s.io/utils/ptr"
)

const (
Expand Down Expand Up @@ -346,7 +346,7 @@ func deleteTmpPVC(l *log.Logger, client k8sclient.Interface, pvc *corev1.Persist
// deletePVConsumerPod removes the pod resource from the api servere
func deletePVConsumerPod(client k8sclient.Interface, pod *corev1.Pod) error {
propagation := metav1.DeletePropagationForeground
delopts := metav1.DeleteOptions{GracePeriodSeconds: pointer.Int64(0), PropagationPolicy: &propagation}
delopts := metav1.DeleteOptions{GracePeriodSeconds: ptr.To(int64(0)), PropagationPolicy: &propagation}
if pod != nil {
if err := client.CoreV1().Pods(pod.Namespace).Delete(context.Background(), pod.Name, delopts); err != nil {
return err
Expand Down

0 comments on commit 9b476fe

Please sign in to comment.