On Thu, Aug 24, 2017 at 3:07 PM, Ben Parees <[email protected]> wrote:

>
>
> On Thu, Aug 24, 2017 at 6:48 AM, Tako Schotanus <[email protected]>
> wrote:
>
>> Hi,
>>
>> I wanted to know if there's any way we could easily perform an "oc
>> new-app ..." from Java?
>> I've of course looked at the output that passing "-o yaml" to the oc
>> command generates but that's what you get after "oc new-app" has already
>> done all of its "smart" work. (Like detection of the language and selecting
>> a builder image etc)
>> Is there a way to do that (besides executing "oc" itself of course)?
>>
>
> Not really, oc new-app is a semi fat-client coded in Go.  All the logic
> for deciding what to do with your repo/image/etc is in go code on the
> client side, not in apis that are being invoked.
>

Yeah, I was afraid of that looking at the code :)


>
> However we do have java client logic in the eclipse plugin which may be a
> useful starting point for at least some of what you want to do.  Jeff
> Cantril can point you to it.
>

Ok, that would be great!


>
>
>
>>
>> Thanks!
>>
>> --
>>
>> TAKO SCHOTANUS
>>
>> SENIOR SOFTWARE ENGINEER
>>
>> Red Hat
>>
>> <https://www.redhat.com/>
>> <https://red.ht/sig>
>>
>>
>> _______________________________________________
>> dev mailing list
>> [email protected]
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>>
>>
>
>
> --
> Ben Parees | OpenShift
>
>


-- 

TAKO SCHOTANUS

SENIOR SOFTWARE ENGINEER

Red Hat

<https://www.redhat.com/>
<https://red.ht/sig>
_______________________________________________
dev mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev

Reply via email to