Skip to content
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

feat: Expose lua filter type_array_key parameter #1323

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

reegnz
Copy link
Contributor

@reegnz reegnz commented Aug 23, 2024

The lua filter was missing a parameter type_array_key.

I've copied the parameter description into the type comment from the
fluent-bit docs.

Ran make generate manifests docs-update verify build.

Signed-off-by: Zoltán Reegn [email protected]

What this PR does / why we need it

Which issue(s) this PR fixes

Does this PR introduced a user-facing change?

lua filter: add `type_array_key`

Additional documentation, usage docs, etc


The lua filter was missing a parameter `type_array_key`.

I've copied the parameter description into the type comment from the
fluent-bit docs.

Ran `make generate manifests docs-update verify build`.

Signed-off-by: Zoltán Reegn <[email protected]>
cw-Guo
cw-Guo previously approved these changes Aug 23, 2024
@@ -76,12 +79,17 @@ func (l *Lua) Params(_ plugins.SecretLoader) (*params.KVs, error) {
kvs.Insert("type_int_key", strings.Join(l.TypeIntKey, " "))
}

if l.TypeArrayKey != nil && len(l.TypeArrayKey) > 0 {
kvs.Insert("type_array_key", strings.Join(l.TypeIntKey, " "))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be kvs.Insert("type_array_key", strings.Join(l.TypeArrayKey, " ")) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, right, my mistake. fixing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@benjaminhuo please check again, now that should be fixed.

Signed-off-by: Zoltán Reegn <[email protected]>
@reegnz reegnz force-pushed the feat/lua_type_array_key branch from 2e014a9 to c4d1cfb Compare August 26, 2024 11:34
@benjaminhuo benjaminhuo merged commit 51ad7fd into fluent:master Aug 26, 2024
9 of 10 checks passed
@reegnz reegnz deleted the feat/lua_type_array_key branch September 3, 2024 07:40
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.

3 participants