Skip to content

docs: document trackFailOnError and helmStuckGrace - #2886

Merged
yxxhero merged 1 commit into
helmfile:mainfrom
lbarrosby:docs/track-fail-on-error-helm-stuck-grace
Nov 10, 2026
Merged

yxxhero merged 1 commit into
helmfile:mainfrom
lbarrosby:docs/track-fail-on-error-helm-stuck-grace

Conversation

@lbarrosby

Copy link
Copy Markdown
Contributor

trackFailOnError (release) and helmStuckGrace (release and helmDefaults) are read from helmfile.yaml but missing from the docs: the kubedog tables in docs/configuration.md and the option list in docs/advanced-features.md stop at kubedogBurst / trackFailedLogs. Only the CLI flags --track-fail-on-error and --helm-stuck-grace are described, in their --help.

This adds:

  • docs/configuration.md: helmStuckGrace in "Additional helmDefaults fields"; trackFailOnError and helmStuckGrace in "Release tracking fields (kubedog)".
  • docs/advanced-features.md: both options in the kubedog "Configuration Options" list.

The precedence written down is what the code does today, so a reader is not surprised:

  • shouldFailOnTrackError (pkg/state/helmx.go): a release trackFailOnError (true or false) wins over --track-fail-on-error. Unlike trackLogsInterval, an explicit flag does not override the release.
  • getHelmStuckGrace: release value > 0, then --helm-stuck-grace > 0, then helmDefaults.helmStuckGrace > 0, else disabled. Both are only used when shouldUseKubedog is true.

The pending-release caveat is copied from the --helm-stuck-grace help text.

Docs only; no code change. Checked by reading pkg/state/state.go (yaml tags trackFailOnError, helmStuckGrace on ReleaseSpec and HelmSpec) and pkg/state/helmx.go; a script comparing every ReleaseSpec/HelmSpec yaml tag against docs/*.md listed these as the only fields not documented anywhere, besides the internal chartPath.

@yxxhero
yxxhero merged commit 6269166 into helmfile:main Nov 10, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants