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
Relax strict validation for service link names #4252
Comments
We started doing a stricter validation in GA for service link names to ensure that the name of a link would work with internal DNS. There are some backwards compatibility as we never had this kind of validation. New validation: We are discussing removing the validation and allow users to create any alias name knowing that internal DNS might not work as expected. |
Is it for service name or for service + stack name together? It looks like for both because my service name is pretty short |
BTW, even though UI reports such error, service gets upgraded anyway. |
@xaka The new validation is for the service alias name.
Nothing significant changed on the service/stack name validation. |
@deniseschannon from the schema, I don't see the extra restrictions regarding starting or ending with a hyphen, or conescutive hyphens.. also, it seems like a slash is accepted.. ?
Is there some additional checks done on this particular resource that's not in the schema? |
Btw, is the schema configurable on any level, or is it hardwired into compiled code? EDIT: nvm, found this: rancher/cattle@a583888 |
ditto, @kaos it's dangerous, but you can manually update the service name in |
@antmanler Thanks, but that won't work for me, unless I misunderstood you. I need to change the schema so it works for new services right away, as we deploy new stacks dozens of times a day (and delete about as many, too). So I can't run around patch each individual service.. ;) |
Tested with rancher server version - V1.0.1-rc1. Allowed to have the following formats in service links: We allow service link name to start/end with |
we won't support begin and end _ for now. |
|
@vincent99 , dig works , but ping failed with error "unknown host" |
Rancher Version: 1.0
Docker Version: 1.10.3
Steps to Reproduce:
Results:
##
I had no such issues with v0.63.
The text was updated successfully, but these errors were encountered: