Skip to content

Conversation

@Watson1978
Copy link
Contributor

Backport #5126

Which issue(s) this PR fixes:
None.

What this PR does / why we need it:
Supports parsing array of basic data types when analyzing YAML configuration files.

The current behavior of Fluentd:

  • Support YAML Array format for $args only.
  • Other Array options must be specified in a comma-separated format.
    • retryable_response_codes: 503, 504
  • If there’s only a single value, it must be specified as String or with the trailing comma.
    • retryable_response_codes: "503"
    • retryable_response_codes: 503,

This supports YAML Array format for all options.

retryable_response_codes:
  - 503
retryable_response_codes: [503]

Note: This PR doesn't address the issue where setting an Int directly to an Array option causes ConfigError: retryable_response_codes: 503 (The C case in
#5126 (comment)) It could be a different issue.

Docs Changes: Not Need

Release Note: Same as the title.

@Watson1978 Watson1978 requested a review from daipom November 4, 2025 07:28
@daipom daipom added this to the v1.19.1 milestone Nov 4, 2025
@Watson1978 Watson1978 force-pushed the backport-to-1.19/pr5126 branch from fd51f99 to 5c5bfef Compare November 4, 2025 09:56
<!--
Thank you for contributing to Fluentd!
Your commits need to follow DCO: https://probot.github.io/apps/dco/
And please provide the following information to help us make the most of
your pull request:
-->

**Which issue(s) this PR fixes**:
None.

**What this PR does / why we need it**:
Supports parsing array of basic data types when analyzing YAML
configuration files.

The current behavior of Fluentd:

* Support YAML Array format for `$args` only.
* Other Array options must be specified in a comma-separated format.
  * `retryable_response_codes: 503, 504`
* If there’s only a single value, it must be specified as String or with
the trailing comma.
    * `retryable_response_codes: "503"`
    * `retryable_response_codes: 503,`

This supports YAML Array format for all options.

```
retryable_response_codes:
  - 503
```

```
retryable_response_codes: [503]
```

Note: This PR doesn't address the issue where setting an Int directly to
an Array option causes ConfigError: `retryable_response_codes: 503` (The
`C` case in
#5126 (comment))
It could be a different issue.

**Docs Changes**: Not Need

**Release Note**: Same as the title.

---------

Signed-off-by: Hear_Y <[email protected]>
Signed-off-by: Daijiro Fukuda <[email protected]>
Co-authored-by: Daijiro Fukuda <[email protected]>
Signed-off-by: Shizuo Fujita <[email protected]>
@Watson1978 Watson1978 force-pushed the backport-to-1.19/pr5126 branch from 5c5bfef to 45f0ffa Compare November 6, 2025 03:01
@daipom daipom merged commit b0ddde7 into v1.19 Nov 6, 2025
15 checks passed
@daipom daipom deleted the backport-to-1.19/pr5126 branch November 6, 2025 03:51
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.

4 participants