Extracted from https://bugzilla.redhat.com/show_bug.cgi?id=1258390 When --attach option is carried in 'oc run', there is error info indicating "not implemented" $ oc run nginx --image=nginx --attach=true. error: cannot attach to DeploymentConfig: not implemented
OpenShift overrides the "run" command generator to create a DeploymentConfig instead of a replication controller. We need to also inject handling of `--attach` for that object, since the core command doesn't know what to do with it
Commit pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/65775d3955417cf81258df83b10a603f068c6b3c Bug 1261548 - oc run --attach support for DeploymentConfig
Verified on devenv-fedora_2595 oc v1.0.7-32-gd17e473 kubernetes v1.2.0-alpha.1-1107-g4c8e6f4 $ oc run hello-openshift --image=yapei/hello-openshift --attach=true Waiting for pod yapei-test/hello-openshift-1-isso6 to be running, status is Pending, pod ready: false Waiting for pod yapei-test/hello-openshift-1-isso6 to be running, status is Pending, pod ready: false Waiting for pod yapei-test/hello-openshift-1-isso6 to be running, status is Pending, pod ready: false Waiting for pod yapei-test/hello-openshift-1-isso6 to be running, status is Pending, pod ready: false Waiting for pod yapei-test/hello-openshift-1-isso6 to be running, status is Pending, pod ready: false Waiting for pod yapei-test/hello-openshift-1-isso6 to be running, status is Pending, pod ready: false Started, serving at 8080 it works as expected