From 7111e4f70948def4ccf585172d4877b314994d3a Mon Sep 17 00:00:00 2001 From: Stefan Bueringer Date: Mon, 13 Oct 2025 14:04:56 +0200 Subject: [PATCH] Add hint to look into controller logs to runtime client error response MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Büringer buringerst@vmware.com --- internal/runtime/client/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/runtime/client/client.go b/internal/runtime/client/client.go index d86b4c41d4e3..1d260e7450fe 100644 --- a/internal/runtime/client/client.go +++ b/internal/runtime/client/client.go @@ -124,7 +124,7 @@ func (c *client) Discover(ctx context.Context, extensionConfig *runtimev1.Extens if response.GetStatus() == runtimehooksv1.ResponseStatusFailure { log.Info(fmt.Sprintf("Failed to discover extension %q: got failure response with message %v", extensionConfig.Name, response.GetMessage())) // Don't add the message to the error as it is may be unique causing too many reconciliations. Ref: https://github.com/kubernetes-sigs/cluster-api/issues/6921 - return nil, errors.Errorf("failed to discover extension %q: got failure response", extensionConfig.Name) + return nil, errors.Errorf("failed to discover extension %q: got failure response, please check controller logs for errors", extensionConfig.Name) } // Check to see if the response is valid. @@ -366,7 +366,7 @@ func (c *client) CallExtension(ctx context.Context, hook runtimecatalog.Hook, fo if response.GetStatus() == runtimehooksv1.ResponseStatusFailure { log.Info(fmt.Sprintf("Failed to call extension handler %q: got failure response with message %v", name, response.GetMessage())) // Don't add the message to the error as it is may be unique causing too many reconciliations. Ref: https://github.com/kubernetes-sigs/cluster-api/issues/6921 - return errors.Errorf("failed to call extension handler %q: got failure response", name) + return errors.Errorf("failed to call extension handler %q: got failure response, please check controller logs for errors", name) } if retryResponse, ok := response.(runtimehooksv1.RetryResponseObject); ok && retryResponse.GetRetryAfterSeconds() != 0 {