-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Bug 1247680 - must not truncate svc names in the cli, rely on API validation #4220
Conversation
@jwforres ptal |
worth adding a testcase for? otherwise LGTM |
[merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/3005/) (Image: devenv-fedora_2173) |
Evaluated for origin merge up to f94c655 |
[Test]ing while waiting on the merge queue |
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/4212/) |
Evaluated for origin test up to f94c655 |
Merged by openshift-bot
people who comment on pull requests post-merge are the worst. also, will a name longer than 24 characters leave a bunch of partially created resources when it fails on services? |
@smarterclayton comment on what you want for bug 1251601 and 1247680. |
Danger, this is not safe. We have to restrict --name, but this is the So this needs to be reverted - we need to validate
So we have to truncate this in the CLI. On Tue, Aug 18, 2015 at 4:39 PM, Jordan Liggitt notifications@github.com
Clayton Coleman | Lead Engineer, OpenShift |
and lowercase? |
@liggitt hrm, I'm afraid so, you are correct. |
It also has to start with a letter, see On Tue, Aug 18, 2015 at 4:42 PM, Jordan Liggitt notifications@github.com
|
FYI, fix for the console #4249 |
So we are replicating the validation that happens in the API on every client? Shouldn't we rely on the API for validation, but have it fail on (some) errors, like validation? |
Reverted and properly fixed for |
Bug 1251601 and 1247680.
This will now display the error message from the API instead of silently truncating and lowercasing the provided names: