-
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
Error while doing "oc replace -f service.json" for a service #8387
Comments
Definition of my service is:
|
I think that On Wed, Apr 6, 2016 at 12:31 PM, Jorge Morales Pou <[email protected]
|
Speak of the devil. Looks like some kinds of services are broken when On Wed, Apr 6, 2016 at 1:08 PM, David Eads [email protected] wrote:
|
@deads2k I guess that "oc replace" should then have better documentation and failure behavior. I've looked up the docs and there's no usage of oc apply (not even here: https://docs.openshift.org/latest/cli_reference/basic_cli_operations.html), but I've found usages of "oc replace". |
Can you help describe what's missing in the docs for |
@deads2k I used replace as there was no information about apply (which is really what I wanted). There's already an open bug in openshift-docs for it. openshift/openshift-docs#1867 and openshift/openshift-docs#1868. Also, looking at the json I passed along, I didn't set clusterIp explicitly, so I would look into some documentation stating what you described in your previous answer. That some fields are defaulted, then changed by controllers, and hence the error can be seen. And that --force will delete and recreate the object. An also, I would link to apply as to "Maybe is apply what you want to do". |
upstream issue: kubernetes/kubernetes#24040 |
Copying from upstream:
If docs need to be updated, please open an issue in https://github.com/openshift/openshift-docs |
When doing an "oc replace -f myservice.json" with a service defined in a json file, I get the following error:
The text was updated successfully, but these errors were encountered: