From 5a0df7eb0d7b6944ce9558aa0482219bbf184695 Mon Sep 17 00:00:00 2001 From: Oleg Pustovit Date: Fri, 9 Jan 2026 12:35:58 +0100 Subject: [PATCH] fix(sdk): Include status message in watcher wait debug logging The status watcher already emits debug logs when waiting for resources to become ready, but omits the detailed message from the kstatus library. This makes SDK debugging harder since users only see status codes like "InProgress" without context such as "Replicas: 1/2" or "Ready: 0/2". Include the Message field in the debug log output so SDK consumers configuring slog with debug level get the detailed resource status information they expect. Fixes #31585 Signed-off-by: Oleg Pustovit --- pkg/kube/statuswait.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kube/statuswait.go b/pkg/kube/statuswait.go index 01024afa6..dc23a8091 100644 --- a/pkg/kube/statuswait.go +++ b/pkg/kube/statuswait.go @@ -266,7 +266,7 @@ func statusObserver(cancel context.CancelFunc, desired status.Status, logger *sl return nonDesiredResources[i].Identifier.Name < nonDesiredResources[j].Identifier.Name }) first := nonDesiredResources[0] - logger.Debug("waiting for resource", "namespace", first.Identifier.Namespace, "name", first.Identifier.Name, "kind", first.Identifier.GroupKind.Kind, "expectedStatus", desired, "actualStatus", first.Status) + logger.Debug("waiting for resource", "namespace", first.Identifier.Namespace, "name", first.Identifier.Name, "kind", first.Identifier.GroupKind.Kind, "expectedStatus", desired, "actualStatus", first.Status, "message", first.Message) } } }