From 9872654b3137b95b23fc269a4ff33de2913de9d2 Mon Sep 17 00:00:00 2001 From: Shafeeque E S Date: Tue, 20 Dec 2022 14:44:49 +0530 Subject: [PATCH] Use Subresource client for Status Ref: https://github.com/kubernetes-sigs/controller-runtime/pull/2072 --- cmd/gardener-extension-provider-local/app/app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/gardener-extension-provider-local/app/app.go b/cmd/gardener-extension-provider-local/app/app.go index 23fd439601d..e32562383c1 100644 --- a/cmd/gardener-extension-provider-local/app/app.go +++ b/cmd/gardener-extension-provider-local/app/app.go @@ -331,10 +331,10 @@ func (w *webhookTriggerer) Start(ctx context.Context) error { return err } - return w.trigger(ctx, w.client, w.client, &appsv1.DeploymentList{}, client.MatchingLabels{"app": "dependency-watchdog-probe"}) + return w.trigger(ctx, w.client, w.client.Status(), &appsv1.DeploymentList{}, client.MatchingLabels{"app": "dependency-watchdog-probe"}) } -func (w *webhookTriggerer) trigger(ctx context.Context, reader client.Reader, writer client.StatusWriter, objectList client.ObjectList, opts ...client.ListOption) error { +func (w *webhookTriggerer) trigger(ctx context.Context, reader client.Reader, writer client.SubResourceWriter, objectList client.ObjectList, opts ...client.ListOption) error { if err := reader.List(ctx, objectList, opts...); err != nil { return err }