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
Unable to create virtual service through Kiali UI. Istio 1.9.2 admission fails with "subset name is invalid: 1.0" #3908
Comments
Note the frontend service the virtual service is calling has these "app" and "version" labels selector set:
|
Hi, thanks for the issue, perhaps it's missing a sanity check in the "1.0" version. |
Hi Lucas. That version label is found in the Deployment object:
|
Thanks for confirming, yes, the 1.0 is missing a "" in the VS generation. I'll prepare a fix for next release, thanks ! |
Excellent ! I confirm removing that version label on both the deployment and service selector works. Thank you ! |
note that a potential workaround (for other users as well) it could be to start the version label with text to avoid the yaml convertion to number "1.0" -> "v1.0" It's not a fix, but that should work meanwhile prepare a fix. |
I tried that and no luck:
|
Ok, thanks for testing, the "." char seems it needs the "" always. |
@somejfn I guess I need to revisit this issue. The admission webhook is stopping / sending that error, so the name defined by the user is the wrong one:
So, then here, Kiali is just propagating that, perhaps a enhancement for the future could be to warn user in case that some label may have a confusing or potentially syntax wrong name. I'm afraid that workaround for the moment should be to use a different naming in the version label, like "v1.0" -> "v1_0" or something similar without a problem with the basic k8s schema for naming. What do you think ? So, I think then we can document it but it's not a bug that I can prevent an easy fix. (I originally thought that I missed some basic quotes on resource generation and I was approaching that fix). |
Describe the bug
I was testing the creation of virtual services through Kiali and this was working just fine before on older Istio releases but now it fails admission control creating the simplest VS (see below). In Kiali v1.33 logs (debug enabled):
The VS created (all options left to default values but this view):
Versions used
Kiali: v1.33 (via v1.33 operator)
Istio: 1.9.2
Kubernetes flavour and version: Kubeadm 1.19.2
Other note: I just upgraded the Kiali environment from v1.32/v1.33
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Virtual service config generated through UI should be valid.
My kiali CR:
The text was updated successfully, but these errors were encountered: