[
https://issues.jboss.org/browse/JBIDE-14698?page=com.atlassian.jira.plugi...
]
Andre Dietisheim updated JBIDE-14698:
-------------------------------------
Description:
The openshift-java-client currently wont let you query the PaaS for the available
GearProfile(s).
I see gear sizes available when getting
https://openshift.redhat.com/broker/rest/user
{code}
<capabilities/><br>
<subaccounts>false</subaccounts><br>
<gear-sizes><br>
<gear-size>small<:/gear-size><br>
<gear-size>medium<:/gear-size><br>
</gear-sizes><br>
</capabilities><br>
{code}
and they also show up in the optional parameters when creating an application:
{code}
<link>
<rel>Create new application</rel><br>
<method>POST</method><br>
<
href>https://openshift.redhat.com/broker/rest/domains/foobarz/applicat...
...<br>
<optional-param><br>
<name>gear_profile</name><br>
<type>string</type><br>
<description>The size of the gear</description><br>
<valid-options><br>
<valid-option>small</valid-option><br>
<valid-option>medium</valid-option><br>
</valid-options><br>
<default-value>small</default-value><br>
</optional-param><br>
{code}
was:
The openshift-java-client currently wont let you query the PaaS for the available
GearProfile(s).
I see gear sizes available when getting
https://openshift.redhat.com/broker/rest/user
{code}
<capabilities/><br>
<subaccounts>false</subaccounts><br>
<gear-sizes><br>
<gear-size>small<:/gear-size><br>
<gear-size>medium<:/gear-size><br>
</gear-sizes><br>
</capabilities><br>
{code}
and they also show up in the optional parameters when creating an application:
{code}
<link>
<rel>Create new application</rel><br>
<method>POST</method><br>
<
href>https://openshift.redhat.com/broker/rest/domains/foobarz/applicat...
...<br>
<optional-param><br>
<name>gear_profile</name><br>
<type>string</type><br>
<description>The size of the gear</description><br>
<valid-options><br>
<valid-option>small</valid-option><br>
<valid-option>medium</valid-option><br>
</valid-options><br>
<default-value>small</default-value><br>
</optional-param><br>
</code>
The OpenShift java client is hard-coding these currently as it was the case for embedded
cartridges in prior versions. Is this what you're talking about?
Cheers
André
openshift-java-client: add support for reading available
GearProfiles
---------------------------------------------------------------------
Key: JBIDE-14698
URL:
https://issues.jboss.org/browse/JBIDE-14698
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: openshift
Affects Versions: 4.1.0.Beta1
Reporter: Andre Dietisheim
Assignee: Andre Dietisheim
Fix For: 4.1.0.Beta2
The openshift-java-client currently wont let you query the PaaS for the available
GearProfile(s).
I see gear sizes available when getting
https://openshift.redhat.com/broker/rest/user
{code}
<capabilities/><br>
<subaccounts>false</subaccounts><br>
<gear-sizes><br>
<gear-size>small<:/gear-size><br>
<gear-size>medium<:/gear-size><br>
</gear-sizes><br>
</capabilities><br>
{code}
and they also show up in the optional parameters when creating an application:
{code}
<link>
<rel>Create new application</rel><br>
<method>POST</method><br>
<
href>https://openshift.redhat.com/broker/rest/domains/foobarz/applicat...
...<br>
<optional-param><br>
<name>gear_profile</name><br>
<type>string</type><br>
<description>The size of the gear</description><br>
<valid-options><br>
<valid-option>small</valid-option><br>
<valid-option>medium</valid-option><br>
</valid-options><br>
<default-value>small</default-value><br>
</optional-param><br>
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira