-
Notifications
You must be signed in to change notification settings - Fork 292
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
az aks create|nodepool add --labels - labels ignored if prefix contains '.' #1689
Comments
JFYI @jluk and @xizhamsft |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm. |
aks |
it seems that the logic for the node labels follows the more strict DNS-1123 standard. While this is a valid standard for some names of resources in Kubernetes, the labels doesn't follow this standard https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set
|
is what Kubernetes uses to validate the DNS Prefixes
|
@Azure/aks-pm please take a look! |
Thanks folks anyone adventures a PR to fix it? Otherwise adding @wenwu449 to add to the backlog |
Looks like an RP issue as problem repros in direct REST API calls as well. Also, it seems like it's the 2nd dot which is problematic. |
FYI @seanmck: I'm not able to reproduce the issue with Terraform: https://github.com/mathieu-benoit/myakscluster/blob/master/tf/aks.tf#L121 |
Action required from @Azure/aks-pm |
Action required from @Azure/aks-pm |
Action required from @Azure/aks-pm |
Tried to reproduce in az cli version 2.10. aks-preview extension not installed. Both ~$ az aks nodepool add --resource-group xxx --cluster-name xxxdemo --name nodepool3 --labels a.b/c=d -c 1 ~$ az aks create --resource-group xxx --name xxxdemo2 --nodepool-labels a.b/c=d -c 1 |
This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment. |
This issue will now be closed because it hasn't had any activity for 15 days after stale. mathieu-benoit feel free to comment again on the next 7 days to reopen or open a new issue after that time if you still have a question/issue or suggestion. |
Describe the bug
az aks create|nodepool add --labels
, labels are ignored if their prefix contains '.'.To Reproduce
az aks create --labels test.test/test=test
az aks nodepool add --labels test.test/test=test
Expected behavior
As described here https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set, prefix in labels could contain '.'. And I don't think this associated regex takes this into account: https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/azure/cli/command_modules/acs/_validators.py#L291
Environment summary
Azure CLI 2.5.0 (aks-preview extension not installed)
Additional context
FYI, in my case, I would like to set this label to my User nodepool:
kubernetes.azure.com/mode=user
since it's not added for me.The text was updated successfully, but these errors were encountered: