2022-01-14 18:49:22 +00:00
|
|
|
// Copyright 2021-2022 the Pinniped contributors. All Rights Reserved.
|
2021-08-10 16:05:04 +00:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
package testutil
|
|
|
|
|
|
|
|
import (
|
|
|
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
2021-08-18 04:14:38 +00:00
|
|
|
"k8s.io/apimachinery/pkg/types"
|
2021-08-10 16:05:04 +00:00
|
|
|
)
|
|
|
|
|
2021-08-18 04:14:38 +00:00
|
|
|
func NewPreconditions(uid types.UID, rv string) metav1.DeleteOptions {
|
|
|
|
return metav1.DeleteOptions{
|
|
|
|
Preconditions: &metav1.Preconditions{
|
|
|
|
UID: &uid,
|
|
|
|
ResourceVersion: &rv,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|