From 45a7040f16527bed8ef96efc0ded860bd7a85d40 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 a518f0c04..a10be20c0 100644 --- a/pkg/kube/statuswait.go +++ b/pkg/kube/statuswait.go @@ -246,7 +246,7 @@ func statusObserver(cancel context.CancelFunc, desired status.Status) collector. return nonDesiredResources[i].Identifier.Name < nonDesiredResources[j].Identifier.Name }) first := nonDesiredResources[0] - slog.Debug("waiting for resource", "namespace", first.Identifier.Namespace, "name", first.Identifier.Name, "kind", first.Identifier.GroupKind.Kind, "expectedStatus", desired, "actualStatus", first.Status) + slog.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) } } }