Repository navigation
add trackLogsUntilReady flag - #2814
Merged
Merged
Conversation
pznamensky
requested review from
aditmeno,
itscaro,
mumoshu,
xiaomudk,
yxxhero and
zhaque44
as code owners
October 1, 2026 12:55
pznamensky
force-pushed
the
add-trackLogsUntilReady
branch
from
October 1, 2026 12:55
d8f6d5d to
5394d66
Compare
Signed-off-by: pznamensky <[email protected]>
… filter
- podLogFilter.update: replace nested if-found/if-uid block with a single
combined guard plus a no-op delete
- podLogFilter.watch: extract cutoffTrackedKind predicate and
watchNamespacePods helper; use RWTransactionErr (kubedog's own idiom)
instead of capturing err in plain RWTransaction closures, removing the
'if err == nil { inf.Run() }' nesting
- TrackResources: extract newStartupLogFilter guard-clause helper so the
printer wiring stays flat
- add table tests for the new helpers
No behavior change; race tests and golangci-lint pass.
Signed-off-by: yxxhero <[email protected]>
yxxhero
force-pushed
the
add-trackLogsUntilReady
branch
from
October 4, 2026 00:13
78b1b30 to
cba6094
Compare
yxxhero
approved these changes
Oct 4, 2026
Contributor
Author
|
@yxxhero, thanks 🙇 |
hbjydev
pushed a commit
to hbjydev/phoebe
that referenced
this pull request
Oct 20, 2026
…) (#902) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [aqua:helmfile/helmfile](https://github.com/helmfile/helmfile) | tools | patch | `1.8.1` → `1.8.2` | --- ### Release Notes <details> <summary>helmfile/helmfile (aqua:helmfile/helmfile)</summary> ### [`v1.8.2`](https://github.com/helmfile/helmfile/releases/tag/v1.8.2) [Compare Source](helmfile/helmfile@v1.8.1...v1.8.2) #### What's Changed - fix: support escaped commas in --state-values-set by [@​ban11111](https://github.com/ban11111) in [#​2813](helmfile/helmfile#2813) - add trackLogsUntilReady flag by [@​pznamensky](https://github.com/pznamensky) in [#​2814](helmfile/helmfile#2814) - feat: dir= selector for path-based release filtering and traversal skip by [@​dschmidt](https://github.com/dschmidt) in [#​2609](helmfile/helmfile#2609) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.113.4 to 1.114.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2818](helmfile/helmfile#2818) - build(deps): bump github.com/sashabaranov/go-openai from 1.42.1 to 1.43.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2819](helmfile/helmfile#2819) - build(deps): bump go.opentelemetry.io/otel/sdk/metric from 1.46.0 to 1.47.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2815](helmfile/helmfile#2815) - build(deps): bump gitpython from 3.1.59 to 3.1.62 in /docs by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2820](helmfile/helmfile#2820) - build(deps): bump golang.org/x/sync from 0.23.0 to 0.24.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2827](helmfile/helmfile#2827) - add trackLogsInterval option by [@​pznamensky](https://github.com/pznamensky) in [#​2825](helmfile/helmfile#2825) - build(deps): bump github.com/hashicorp/go-getter/v2 from 2.2.4 to 2.2.5 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2821](helmfile/helmfile#2821) - build(deps): bump go.opentelemetry.io/proto/otlp from 1.11.0 to 1.11.1 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2822](helmfile/helmfile#2822) - build(deps): bump go.opentelemetry.io/contrib/exporters/autoexport from 0.71.0 to 0.72.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2823](helmfile/helmfile#2823) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.114.0 to 1.114.3 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2828](helmfile/helmfile#2828) - build(deps): bump github.com/mattn/go-runewidth from 0.0.30 to 0.0.31 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2829](helmfile/helmfile#2829) - build(deps): bump golang.org/x/term from 0.46.0 to 0.47.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2830](helmfile/helmfile#2830) - build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.33.6 to 1.33.9 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2831](helmfile/helmfile#2831) - build(deps): bump github.com/gookit/color from 1.6.1 to 1.6.2 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2833](helmfile/helmfile#2833) - fix: skip recreatePods on Helm 4, which removed --recreate-pods by [@​Cayan](https://github.com/Cayan) in [#​2832](helmfile/helmfile#2832) - chore: bump Helm to v3.22.1 and v4.3.1 by [@​yxxhero](https://github.com/yxxhero) in [#​2834](helmfile/helmfile#2834) - fix: propagate --oci-plain-http to chartify for all chart-preparing commands by [@​yxxhero](https://github.com/yxxhero) in [#​2826](helmfile/helmfile#2826) **Full Changelog**: <helmfile/helmfile@v1.8.1...v1.8.2> </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/London) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNjcuNSIsInVwZGF0ZWRJblZlciI6IjQ0LjE2Ny41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL3BhdGNoIl19--> Reviewed-on: https://git.hayden.moe/hayden/phoebe/pulls/902
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When kubedog log output is enabled, already-ready pods continue printing application traffic while other replicas roll out. This can overwhelm CI deployment logs for busy apps.
Failed-only logging (
trackLogs: false + trackFailedLogs: true) avoids that noise but also hides successful startup logs.I'd suggest adding opt-in startup-only logging through
trackLogsUntilReadyand--track-logs-until-readyforapplyandsync:Similar approach is now used in werf.
Each Deployment, StatefulSet, or DaemonSet pod stops printing routine logs after its first Ready transition. Buffered startup logs, including chunks delivered after readiness, are still flushed. Readiness and failure tracking continue for every pod.
Full streaming remains the default, and failed-only and Job logging retain their existing behavior. The filter reuses the shared pod informer and resets for replacement pods. Kubernetes continues collecting logs; this change limits printed output.
Validation passed:
make checkandgolangci-lint run.Documentation and regression tests cover independent replicas, delayed startup logs, readiness changes, replacement pods, and Job logging.
AI disclosure
I used LLMs to write and test this change as I'm not familiar with golang.
However I've tested this branch it in our deployment jobs and it seems to be working fine.