Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions clusterloader2/pkg/framework/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,18 +255,18 @@ func (f *Framework) CreateObject(namespace string, name string, obj *unstructure
}

// PatchObject updates object (using patch) with given name using given object description.
func (f *Framework) PatchObject(namespace string, name string, obj *unstructured.Unstructured, _ ...*client.APICallOptions) error {
return client.PatchObject(f.dynamicClients.GetClient(), namespace, name, obj)
func (f *Framework) PatchObject(namespace string, name string, obj *unstructured.Unstructured, options ...*client.APICallOptions) error {
return client.PatchObject(f.dynamicClients.GetClient(), namespace, name, obj, options...)
}

// DeleteObject deletes object with given name and group-version-kind.
func (f *Framework) DeleteObject(gvk schema.GroupVersionKind, namespace string, name string, _ ...*client.APICallOptions) error {
return client.DeleteObject(f.dynamicClients.GetClient(), gvk, namespace, name)
func (f *Framework) DeleteObject(gvk schema.GroupVersionKind, namespace string, name string, options ...*client.APICallOptions) error {
return client.DeleteObject(f.dynamicClients.GetClient(), gvk, namespace, name, options...)
}

// GetObject retrieves object with given name and group-version-kind.
func (f *Framework) GetObject(gvk schema.GroupVersionKind, namespace string, name string, _ ...*client.APICallOptions) (*unstructured.Unstructured, error) {
return client.GetObject(f.dynamicClients.GetClient(), gvk, namespace, name)
func (f *Framework) GetObject(gvk schema.GroupVersionKind, namespace string, name string, options ...*client.APICallOptions) (*unstructured.Unstructured, error) {
return client.GetObject(f.dynamicClients.GetClient(), gvk, namespace, name, options...)
}

// ApplyTemplatedManifests finds and applies all manifest template files matching the provided
Expand Down