Re: How to get this from the librbary?

2019-05-08 Thread Phil Cameron
On 05/07/2019 07:05 PM, Tony Herstell wrote: I dont know Openshift too well but I am trying to get the details that would be returned from this command: oc describe node -l app=sc-app ... (towards the bottom)... /Allocated resources:/ /(Total limits may be over 100 pe

Re: How to get this from the librbary?

2019-05-07 Thread Jean-Francois Maury
There is no specific object in the library for nodes. But you can use client.list("Node") and cast each of the returned item to KubernetesResource where you can access the returned JSON through getModel() method. Or provide a PR that implements Node resources Or open an issue On Wed, May 8, 2019 a

Re: How to get this from the librbary?

2019-05-07 Thread Tony Herstell
I am sorry, I probably didnt explain it very well. I was after how I use the openshift-restclient-java library to do what the "oc" command does. I have managed to use this awesome library to get all the information I require from openshift so far (e.g. for project, pods etc.). Tony

Re: How to get this from the librbary?

2019-05-07 Thread Ben Parees
if you run oc with "--loglevel=8" you can see all the api calls it is making and the responses. On Tue, May 7, 2019 at 7:06 PM Tony Herstell wrote: > I dont know Openshift too well but I am trying to get the details that > would be returned from this command: > > oc describe node -l app=sc-app

How to get this from the librbary?

2019-05-07 Thread Tony Herstell
I dont know Openshift too well but I am trying to get the details that would be returned from this command: oc describe node -l app=sc-app ... (towards the bottom)... *Allocated resources:* *(Total limits may be over 100 percent, i.e., overcommitted.)* *CPU Requests CPU Limits Memory Requests