openshift-evangelists / oc-cluster-wrapper

oc cluster up bash wrapper
Apache License 2.0
144 stars 72 forks source link

Using downstream oc doesn't work #9

Closed e-minguez closed 7 years ago

e-minguez commented 7 years ago

Related to this issue https://bugzilla.redhat.com/show_bug.cgi?id=1380555 Also, it would be nice to have some kind of flag to use the downstream or the upstream oc binary in order to create OCP/Origin clusters.

bjartek commented 7 years ago

What if we define an env var OC=$(which oc)

And then in the code use it like this $OC cluster up

Then you could call the oc-cluster wrapper like this in order to use downstream oc OC=/path/to/downstream/oc oc-cluster example up

Would that work? Not the maintainer here, just though of a possible sollution.