update kube and dependencies to v1.23
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
23
vendor/k8s.io/client-go/testing/actions.go
generated
vendored
23
vendor/k8s.io/client-go/testing/actions.go
generated
vendored
@@ -222,10 +222,15 @@ func NewUpdateSubresourceAction(resource schema.GroupVersionResource, subresourc
|
||||
}
|
||||
|
||||
func NewRootDeleteAction(resource schema.GroupVersionResource, name string) DeleteActionImpl {
|
||||
return NewRootDeleteActionWithOptions(resource, name, metav1.DeleteOptions{})
|
||||
}
|
||||
|
||||
func NewRootDeleteActionWithOptions(resource schema.GroupVersionResource, name string, opts metav1.DeleteOptions) DeleteActionImpl {
|
||||
action := DeleteActionImpl{}
|
||||
action.Verb = "delete"
|
||||
action.Resource = resource
|
||||
action.Name = name
|
||||
action.DeleteOptions = opts
|
||||
|
||||
return action
|
||||
}
|
||||
@@ -241,11 +246,16 @@ func NewRootDeleteSubresourceAction(resource schema.GroupVersionResource, subres
|
||||
}
|
||||
|
||||
func NewDeleteAction(resource schema.GroupVersionResource, namespace, name string) DeleteActionImpl {
|
||||
return NewDeleteActionWithOptions(resource, namespace, name, metav1.DeleteOptions{})
|
||||
}
|
||||
|
||||
func NewDeleteActionWithOptions(resource schema.GroupVersionResource, namespace, name string, opts metav1.DeleteOptions) DeleteActionImpl {
|
||||
action := DeleteActionImpl{}
|
||||
action.Verb = "delete"
|
||||
action.Resource = resource
|
||||
action.Namespace = namespace
|
||||
action.Name = name
|
||||
action.DeleteOptions = opts
|
||||
|
||||
return action
|
||||
}
|
||||
@@ -391,6 +401,7 @@ type UpdateAction interface {
|
||||
type DeleteAction interface {
|
||||
Action
|
||||
GetName() string
|
||||
GetDeleteOptions() metav1.DeleteOptions
|
||||
}
|
||||
|
||||
type DeleteCollectionAction interface {
|
||||
@@ -583,17 +594,23 @@ func (a PatchActionImpl) DeepCopy() Action {
|
||||
|
||||
type DeleteActionImpl struct {
|
||||
ActionImpl
|
||||
Name string
|
||||
Name string
|
||||
DeleteOptions metav1.DeleteOptions
|
||||
}
|
||||
|
||||
func (a DeleteActionImpl) GetName() string {
|
||||
return a.Name
|
||||
}
|
||||
|
||||
func (a DeleteActionImpl) GetDeleteOptions() metav1.DeleteOptions {
|
||||
return a.DeleteOptions
|
||||
}
|
||||
|
||||
func (a DeleteActionImpl) DeepCopy() Action {
|
||||
return DeleteActionImpl{
|
||||
ActionImpl: a.ActionImpl.DeepCopy().(ActionImpl),
|
||||
Name: a.Name,
|
||||
ActionImpl: a.ActionImpl.DeepCopy().(ActionImpl),
|
||||
Name: a.Name,
|
||||
DeleteOptions: *a.DeleteOptions.DeepCopy(),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user