Calling strings.Split on an empty string still returns a slice with one empty string in it, hence setting options.
This commit changes the implementation to first check for empty strings, before even calling strings.Split.
Checklist
For Code changes
[ ] Categorize the PR by setting a good title and adding one of the labels:
bug, enhancement, documentation, change, breaking, dependency
as they show up in the changelog
Calling
strings.Split
on an empty string still returns a slice with one empty string in it, hence settingoptions
.This commit changes the implementation to first check for empty strings, before even calling
strings.Split
.Checklist
For Code changes
bug
,enhancement
,documentation
,change
,breaking
,dependency
as they show up in the changelogarea:operator
charts/
directory.