From 9334ef3b83ed65e3a31176677620b11463116067 Mon Sep 17 00:00:00 2001 From: George Angel Date: Mon, 6 Feb 2023 15:25:52 +1000 Subject: [PATCH] Update to use SubResourceOptions https://github.com/kubernetes-sigs/controller-runtime/pull/2072 --- client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/client.go b/client/client.go index 149a663a..aea21f0b 100644 --- a/client/client.go +++ b/client/client.go @@ -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.