unable to search for pods by label containing dash
What would you like to be added?
The pod labels can contain dashes, as described in syntax-and-character-set. However, searching for pods with label containing a dash will result in an error.
Why is this needed?
unable to search for pods by valid label
@iamryanchia Got it, let's take a look
Hi, I want to try to solve this problem, but I found that the above query writing method may not be correct. The value in string format must be enclosed in single or double quotation marks, otherwise it will be parsed as a column name by SQL parser. If the above label value is enclosed in single or double quotation marks, this problem will be solved.
The test results as below:
-
invalid query
-
single quotation
-
double quotation
@gshilei Thank you for trying to reproduce this issue! It doesn't seem to be a bug, so let's close this issue.