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

[controller] Ensure empty string from config doesn't result in an array of an empty string for instance tag list #1202

Merged

Conversation

kvargha
Copy link
Contributor

@kvargha kvargha commented Sep 26, 2024

Summary, imperative, start upper case, don't end with a period

Currently, if you provide an empty string for controller.instance.tag.list, it will result in an array that has an empty string as an element. This isn't desirable, because the code would then assign an empty string to an instance's tag list in the controller.

This change will make sure that if there is an empty string, it will result in an empty array.

How was this PR tested?

Added a new test case

Does this PR introduce any user-facing changes?

  • No. You can skip the rest of this section.
  • Yes. Make sure to explain your proposed changes and call out the behavior change.

@kvargha kvargha enabled auto-merge (squash) September 26, 2024 23:15
@nisargthakkar
Copy link
Contributor

Also, this specific change affects almost every component, and not just controller. Can we handle this in VeniceControllerClusterConfig instead?

@kvargha kvargha changed the title [controller] Ensure empty string from config doesn't result in an array of an empty string [controller] Ensure empty string from config doesn't result in an array of an empty string for instance tag list Sep 26, 2024
@kvargha kvargha merged commit c694d96 into linkedin:main Sep 27, 2024
45 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