client-go dynamic client: pass DeleteOptions by value

Kubernetes-commit: 161b7513f73185745f8c17db5a56b7229157f876
This commit is contained in:
Jordan Liggitt
2020-03-06 10:20:27 -05:00
committed by Kubernetes Publisher
parent 7b31ec144a
commit 2c6476911c
5 changed files with 12 additions and 18 deletions

View File

@@ -32,8 +32,8 @@ type ResourceInterface interface {
Create(obj *unstructured.Unstructured, options metav1.CreateOptions, subresources ...string) (*unstructured.Unstructured, error)
Update(obj *unstructured.Unstructured, options metav1.UpdateOptions, subresources ...string) (*unstructured.Unstructured, error)
UpdateStatus(obj *unstructured.Unstructured, options metav1.UpdateOptions) (*unstructured.Unstructured, error)
Delete(name string, options *metav1.DeleteOptions, subresources ...string) error
DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
Delete(name string, options metav1.DeleteOptions, subresources ...string) error
DeleteCollection(options metav1.DeleteOptions, listOptions metav1.ListOptions) error
Get(name string, options metav1.GetOptions, subresources ...string) (*unstructured.Unstructured, error)
List(opts metav1.ListOptions) (*unstructured.UnstructuredList, error)
Watch(opts metav1.ListOptions) (watch.Interface, error)