Mojo
Mojo

Reputation: 2687

How to change a buildConfig in OpenShift 3

I'm working through the sample tutorial on OpenShift 3. I created the example application nodejs-mongodb-example. But in the "edit parameters" step, I put the wrong URL to my forked repository, and I get a failed build.

I thought maybe I'd be able to extract the buildConfig file (is that a template?) on the command line, but I haven't found a way to do that.

Is there a way to edit and replace this bad buildConfig without deleting all of the application objects and starting over?

Upvotes: 1

Views: 2631

Answers (2)

ncdc
ncdc

Reputation: 351

You can use the oc edit command to edit an existing object. For example, oc edit buildconfig/myapp to edit the BuildConfig named myapp.

Upvotes: 1

Related Questions