Skip to content

Commit

Permalink
Update to use SubResourceOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
george-angel committed Feb 6, 2023
1 parent f0a87ac commit 9334ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Expand Up @@ -228,7 +228,7 @@ func (c *Client) UpdateWaybill(ctx context.Context, waybill *kubeapplierv1alpha1
// UpdateWaybillStatus updates the status of the Waybill resource
// provided.
func (c *Client) UpdateWaybillStatus(ctx context.Context, waybill *kubeapplierv1alpha1.Waybill) error {
return c.GetClient().Status().Update(ctx, waybill, defaultUpdateOptions)
return c.GetClient().SubResource("status").Update(ctx, waybill, &client.SubResourceUpdateOptions{UpdateOptions: *defaultUpdateOptions})
}

// GetSecret returns the Secret resource specified by the namespace and name.
Expand Down

0 comments on commit 9334ef3

Please sign in to comment.