Created attachment 1273446 [details] oc output Description of problem: `oc export` and `oc get -o yaml --export=true` differ in output format. I would suggest to bring them into consistency. You can see pasted output from both commands. `oc get` prints an empty `status` and also prints wrong and useless `metadata->selfLink`. `oc export` prints some useless things in `status`. I believe it is better to not print `status` at all as well do not print `selfLink`. Version-Release number of selected component (if applicable): oc v3.6.41 kubernetes v1.5.2+43a9be4 How reproducible: always Steps to Reproduce: 1. oc get -o yaml --export=true dc/somedc 2. oc export dc somedc Actual results: useless data as explained above Expected results: clean resource data ready to be created
Closing due to age, also export command was removed and --export flag for get command is deprecated at this point
I know that `export` is gone. I now see that `--export` is deprecated. What is current supported way to backup objects/resources?
oc get -o yaml|json and remove the fields on the client side (as in through an external program). The reason we went with this is that each customer has different needs for what should be removed. That's why we're moving that responsibility to customers.
Thank you very much for providing rational behind this decision!