Closed christiaangoossens closed 2 years ago
As an additional note, the "/" character should also be allowed, as "somehost.nl/dedicated" should be a valid label.
@christiaangoossens thanks for creating this issue! The problem in your case is the "
character and the error message indicates that the character \"
is not allowed (but looks a little bit confusing I admit, but it does not complain about \
), so you should rewrite your node selector to:
syncer:
extraArgs:
- --node-selector=dedicated=value-value
Internally we are using the native Kubernetes function to parse the label selector, so everything that is allowed there is also allowed in the string. I just tested with dedicated=value-value
as well as somehost.nl/dedicated=value-value
and both work as expected.
Hi Fabian,
Yeah, I did see the escaping character there, but I was pretty sure I followed the docs and its right there: https://www.vcluster.com/docs/architecture/scheduling, maybe update that one too to remove the quotes.
Thank you for your quick reply!
The reason I asked about / is that the error also does not include it name part must consist of alphanumeric characters, '-', '_' or '.
as an option, maybe should add it there too
Oh yes you are correct, its a problem in the docs actually. Regarding the error message, we would need to change that in the Kubernetes project as we are reusing their function.
I am using the
configuration, but syncer is failing on startup with the following message:
Afaik is
dedicated
a matching alphanumeric string.