Repository navigation
[9.4] (backport #17403) Fix typos in install help, enroll error and Helm values comments - #17489
Merged
Merged
Conversation
) Correct "all the require command-line parameters" in the install command's long help, "marshall" in the enrollment error message, and three "exlude" comments in the EDOT kube-stack values files. Relates to #14578 Co-authored-by: Anshuman-Prakash <199287261+Anshuman-Prakash@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com> (cherry picked from commit 75e2c2f)
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
2 of 6 tasks
swiatekm
approved these changes
Oct 23, 2026
swiatekm
enabled auto-merge (squash)
October 23, 2026 17:20
Contributor
|
Dependency review finished without posting an analysis comment. If you expected a review, push a new commit to this pull request (or close and reopen it) to try again. Workflow run: https://github.com/elastic/elastic-agent/actions/runs/39993672988 |
Contributor
Author
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
auto-merge was automatically disabled
October 23, 2026 18:39
Branch protection rule check failed
💛 Build succeeded, but was flaky
Failed CI Steps |
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.
What does this PR do?
Fixes the remaining items of #14578 — items 1, 2 and 5. The documentation and changelog half (items 3 and 4) is in #17400.
Item 1 —
internal/pkg/agent/cmd/install.go, theinstallcommand's long help:Unless all the require command-line parameters are provided or -f is used ...Unless all the required command-line parameters are provided or -f is used ...Item 2 —
internal/pkg/agent/cmd/enroll_cmd.go, the error wrapped when enrollment options fail to serialise:Item 5 — the
exludecomment in the EDOT kube-stack Helm values. The issue lists two occurrences; there is a third in the same chart that it missed, so I fixed all three to keep the chart consistent:deploy/helm/edot-collector/kube-stack/values.yaml# exlude collector logs→# exclude collector logsdeploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml# exlude collector logs→# exclude collector logsdeploy/helm/edot-collector/kube-stack/managed_otlp/logs-values.yaml# exlude opentelemetry-kube-stack pod logs→# exclude opentelemetry-kube-stack pod logs(The issue cites lines 353 and 352 for the first two; they have since moved to 380 and 379.)
Deliberately out of scope: one more
exluderemains in the repository, as the policy field name"exlude_files"intesting/integration/ess/escaping_secrets_in_policy_test.go:91. That is test input constructing a policy document rather than user-facing text, and renaming a key inside an integration test's fixture risks changing what the test actually exercises, so I left it alone. Worth a separate look by someone who knows whether that key is meant to mirrorexclude_files.Why is it important?
install.go's long help is whatelastic-agent install --helpprints, and it is the first thing a reader sees when deciding whether they can run the command non-interactively. Theexludecomments are in the values files operators copy and edit when configuring log collection for the EDOT collector.Checklist
./changelog/fragmentsusing the changelog toolNo changelog fragment: all three changes are help text, an error message wording, and YAML comments, with no behaviour change, so this should carry
skip-changelog. (The one item in this issue family that did warrant a fragment is in #17402, which fixes an error message that named the wrong mode.)No test is added: the two Go changes are a cobra
Longstring and an error-wrapping message, and nothing asserts on either — searching*_test.goformarshall enrollmentandthe require command-linereturns no matches.Disruptive User Impact
None functionally. The
failed to marshall enrollment optionsstring changes, so anything grepping logs for that exact spelling would need updating; it is a wrapped error on an internal serialisation failure, so matching on it is unlikely.How to test this PR locally
gofmt -lreports no changes needed on either Go file. A repository-wide search forexlude collector logs,exlude opentelemetry-kube-stack,marshall enrollmentandthe require command-linenow returns no matches, and the only remainingexludeis the test fixture key noted above. The three YAML files keep their existing CRLF line endings.I was not able to compile the packages locally: this checkout's
beatssubmodule is not initialised, so the./beatsreplace directive makesgo build ./internal/...fail before reaching these files. Both edits are string-literal only, so I have left compilation and the unit suite to CI rather than claiming a local build.Related issues
🤖 Generated with Claude Code
This is an automatic backport of pull request #17403 done by [Mergify](https://mergify.com).