Repository navigation
Fix typos in install help, enroll error and Helm values comments - #17403
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 elastic#14578 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
This pull request does not have a backport label. Could you fix it @Anshuman-Prakash? 🙏
|
|
buildkite test this |
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
|
Thanks for the trigger @swiatekm. The red
This PR only touches Could you re-run |
⏳ Build in-progress, with failures
Failed CI Steps
History
|
|
@Mergifyio backport 9.6 9.5 9.4 8.19 |
✅ Backports have been createdDetails
Cherry-pick of 75e2c2f has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
…Helm values comments (#17490) * Fix typos in install help, enroll error and Helm values comments (#17403) 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) # Conflicts: # deploy/helm/edot-collector/kube-stack/managed_otlp/logs-values.yaml * Delete deploy/helm/edot-collector/kube-stack/managed_otlp/logs-values.yaml --------- Co-authored-by: Anshuman Prakash <nakulsrivastava2004@gmail.com> Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com>
) (#17487) 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 (cherry picked from commit 75e2c2f) Co-authored-by: Anshuman Prakash <nakulsrivastava2004@gmail.com> 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>
) (#17489) 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 (cherry picked from commit 75e2c2f) Co-authored-by: Anshuman Prakash <nakulsrivastava2004@gmail.com> 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>
) (#17488) 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 (cherry picked from commit 75e2c2f) Co-authored-by: Anshuman Prakash <nakulsrivastava2004@gmail.com> 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>
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