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

fix: fluentd watchedNamespaces Helm mapping #901

Conversation

leonsteinhaeuser
Copy link

What this PR does / why we need it:

To be able to set an empty array for watchedNamespaces, we need to change the way properties are added. Currently, if we set an empty array as a property, we get the following error message: ClusterFluentdConfig.fluentd.fluent.io "fluentd-config" is invalid: spec.watchedNamespaces: Invalid value: "null": spec.watchedNamespaces in body must be of type array: "null". The reason for this error message is that [] does not count as a value with an index, so the CR key is set to null, which is not a valid value.

Which issue(s) this PR fixes:

See description above.

Does this PR introduced a user-facing change?

None

Additional documentation, usage docs, etc.:


@leonsteinhaeuser
Copy link
Author

Relates to: fluent/helm-charts#412

@benjaminhuo benjaminhuo merged commit cffcb2b into fluent:master Sep 2, 2023
2 checks passed
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.

2 participants