Description of problem: The help text for oc create route ( edge | passthrough | reedirect) includes this entry `--dry-run=false: If true, only print the object that would be sent, without sending it` this does not happen. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. oc create route edge --service=(valid service) --dry-run -o yaml Actual results: route "hello-openshift" created (dry run) printed to stdout Expected results: the yaml file representing the route printed to stdout Additional info:
Commit pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/c42f1f7bf4a45e62b38d33dd1511cecc24efc03c support the --output flag in 'oc create route' currently using the --output flag with 'oc create route does not show the resulting object. I changed that so the the file is printed reflecting the information provided in the help text bug 1418021 https://bugzilla.redhat.com/show_bug.cgi?id=1418021
Tested and passed in v3.11.51 [root@qe-weliang-311-2-master-etcd-nfs-1 tmp]# oc create route edge --service=blue-service --dry-run -o yaml apiVersion: route.openshift.io/v1 kind: Route metadata: creationTimestamp: null name: blue-service spec: host: "" tls: termination: edge to: kind: "" name: blue-service weight: null status: ingress: null [root@qe-weliang-311-2-master-etcd-nfs-1 tmp]# oc version oc v3.11.51 kubernetes v1.11.0+d4cacc0 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://qe-weliang-311-2-master-etcd-nfs-1.int.1207-zea.qe.rhcloud.com:8443 openshift v3.11.51 kubernetes v1.11.0+d4cacc0 [root@qe-weliang-311-2-master-etcd-nfs-1 tmp]#
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:1605