acoustic-carpenter-78188
06/10/2026, 5:24 AMpollInterval (default 10s) and logs the full cycle at INFO every time — resolver start, watcher event, resolver close, per-deployment task types, aggregate task types — even when nothing changed.
• The k8s resolver watcher line had a format bug: logger.Info(ctx, "...: [%v]", event) never applies the format string, so it printed a literal [%v] followed by the entire Endpoints object (managedFields and all, ~3–4 KB per line, every 10s).
• containerStatus IndexOutOfBound logs at ERROR for every Pending pod that simply has no container statuses yet — an expected transient state that pollutes error-rate dashboards.
• The webapi phase-transition log read "Moving Phase for from X to Y" — a broken message with no task identifier, making it unattributable.
• Per-task `ApplyResourceOverrides`/`Adjusted container resources` struct dumps and a contentMD5 cast miss (expected for objects without MD5 metadata) logged at INFO on every occurrence.
Changes
| File | Change |
| ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| flytestdlib/resolver/k8s_resolver.go | Resolver start/close → Debug; watcher event → Debug, fixed %v bug, logs event.Type instead of the full Endpoints dump |
| connector/client.go | Per-deployment and per-rebuild task-type lines → Debug |
| connector/plugin.go | Aggregate supported-task-types now logs at INFO only when the set changes — SetSupportedTaskType normalizes (sort + dedup) and compares against the stored set under its existing mutex, covering both the init path and the poll loop |
| flytestdlib/storage/stow_store.go | contentMD5 cast miss → Debug |
| webapi/monitor.go | Phase transition → Debug; fixed message and added the task ID (cacheItemID) |
| logs/logging_utils.go | containerStatus IndexOutOfBound: Debug when the pod is Pending (containerStatuses is empty by design until containers start), Warn for any other phase where it is genuinely unexpected; kept the spec-containers sibling check at Error |
| flytek8s/container_helper.go | Resource-override struct dumps → Debug |
Net effect on the sampled deployments: ~95% reduction in INFO/ERROR line volume; what remains is actual lifecycle signal. The useful "what task types can this worker run" line is preserved at INFO — it now fires once at startup and again only on change.
Verification
• go build + go vet clean for all touched packages
• go test passes: webapi/connector, internal/webapi, tasks/logs, flytek8s, flytestdlib/storage
• gofmt clean
🤖 Generated with Claude Code
flyteorg/flyte