-
Notifications
You must be signed in to change notification settings - Fork 544
Updated exec input plugin doc config parameter table and general standardization. Fixes #2249. #2250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…dardization. Fixes fluent#2249. Signed-off-by: Eric D. Schabell <eric@schabell.org>
WalkthroughDocumentation for the exec input plugin updated: configuration keys were renamed from CamelCase to snake_case and a "Default" column with clarified default values was added; examples and prose were adjusted to use the new key names and defaults. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
pipeline/inputs/exec.md(3 hunks)
🔇 Additional comments (2)
pipeline/inputs/exec.md (2)
186-188: Update configuration keys in security concerns example.The security section example still references the old CamelCase keys (
exit_after_oneshot,propagate_exit_code), which is inconsistent with the documented updates. If the standardization is to use snake_case, this example is already correct; however, verify this aligns with your standardization goal. If .conf format keys are CamelCase, the.confexamples elsewhere should match this pattern.
21-31: Configuration table restructuring is clear.The parameter table now clearly lists all configuration keys, their descriptions, and default values. The addition of the Default column improves clarity for users. The snake_case naming convention in the table is well-structured.
Signed-off-by: Eric D. Schabell <eric@schabell.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
pipeline/inputs/exec.md (1)
28-28: Minor: Consider shorter alternative to "prior to".Line 28 uses "prior to" which is slightly wordy for documentation. Consider replacing with "before" for a more concise phrasing: "This allows collection of data before Fluent Bit startup."
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
pipeline/inputs/exec.md(3 hunks)
🧰 Additional context used
🪛 LanguageTool
pipeline/inputs/exec.md
[style] ~28-~28: ‘prior to’ might be wordy. Consider a shorter alternative.
Context: ...startup. This allows collection of data prior to Fluent Bit startup. ...
(EN_WORDINESS_PREMIUM_PRIOR_TO)
🔇 Additional comments (4)
pipeline/inputs/exec.md (4)
21-31: Configuration table standardization looks solid.The table properly uses snake_case keys with explicit defaults and clear dependencies documented in descriptions. This aligns with YAML pipeline format conventions and addresses the standardization requirements from issue #2249.
63-101: Format-specific examples correctly demonstrate naming conventions.Both YAML (snake_case) and fluent-bit.conf (CamelCase) examples use format-appropriate keys. The side-by-side presentation effectively shows the distinction, addressing the standardization goal.
105-165: Wrapper section correctly uses updated key names.Narrative and examples consistently use snake_case in YAML (line 117-118) and CamelCase in .conf (lines 134-135). Security guidance and exit code documentation remain clear and comprehensive.
166-169: Parser option reference properly uses snake_case.Narrative correctly refers to the
parseroption in lowercase, consistent with documentation standardization.
Signed-off-by: Eric D. Schabell <eric@schabell.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (3)
pipeline/inputs/exec.md (3)
63-101: Consider adding an explicit note clarifying configuration key naming by format.The examples correctly show snake_case for YAML and CamelCase for fluent-bit.conf, and the tab labels help distinguish them. However, a previous review suggested adding an explicit prose note above the examples to clarify this naming convention difference. While the tab structure is helpful, users who only reference the configuration parameter table (which uses snake_case) and then glance at one example might not realize the naming depends on the format.
Consider adding a brief note like: "Configuration keys use lowercase snake_case in YAML pipeline format (e.g.,
buf_size,interval_sec) and CamelCase with underscores in INI-style .conf format (e.g.,Buf_Size,Interval_Sec). Use the format-appropriate keys for your configuration file type."
168-168: Minor grammar refinement: awkward double preposition.Line 168 reads: "Use the
parseroption to specify the name of a parser configuration to use to process the command input."The phrase "to use to process" contains a redundant preposition. Suggest: "...parser configuration to parse the command input." or "...parser configuration for processing the command input."
28-28: Fix grammar: remove or replace the preposition "to."Line 28 reads: "This allows collection of data before to Fluent Bit startup."
The phrase "before to" is grammatically awkward. Suggest: "This allows collection of data before Fluent Bit startup." or "...data prior to Fluent Bit startup."
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
pipeline/inputs/exec.md(3 hunks)
🔇 Additional comments (1)
pipeline/inputs/exec.md (1)
21-31: Configuration parameter table is well-structured and complete. ✓The table correctly documents snake_case keys with sensible defaults and clear descriptions. Default values like
4096forbuf_sizeand1forinterval_secare appropriate.
|
AI review (and @patrick-stephens!) passed, merging. |
Updated exec input plugin doc config parameter table and general standardization. Fixes #2249.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.