fix breaking changes

Signed-off-by: Steve Kriss <krisss@vmware.com>
This commit is contained in:
Steve Kriss
2019-02-22 09:27:14 -07:00
parent 61eab7dca3
commit 58e471bda0

View File

@@ -98,7 +98,7 @@ type dynamicResourceClient struct {
var _ Dynamic = &dynamicResourceClient{}
func (d *dynamicResourceClient) Create(obj *unstructured.Unstructured) (*unstructured.Unstructured, error) {
return d.resourceClient.Create(obj)
return d.resourceClient.Create(obj, metav1.CreateOptions{})
}
func (d *dynamicResourceClient) List(options metav1.ListOptions) (runtime.Object, error) {
@@ -114,5 +114,5 @@ func (d *dynamicResourceClient) Get(name string, opts metav1.GetOptions) (*unstr
}
func (d *dynamicResourceClient) Patch(name string, data []byte) (*unstructured.Unstructured, error) {
return d.resourceClient.Patch(name, types.MergePatchType, data)
return d.resourceClient.Patch(name, types.MergePatchType, data, metav1.UpdateOptions{})
}