@@ -96,8 +96,8 @@ private V1JobList listJobs(String _continue, String labelSelector, Integer limit
96
96
*/
97
97
private V1LimitRangeList listLimits (String _continue , String labelSelector , Integer limit ) {
98
98
try {
99
- return this .coreApi .listNamespacedLimitRange (namespace , null , null , _continue , null ,
100
- labelSelector , limit , null , null , null );
99
+ return this .coreApi .listNamespacedLimitRange (namespace , ( String ) null , ( Boolean ) null , _continue , ( String ) null ,
100
+ labelSelector , limit , ( String ) null , ( String ) null , ( Integer ) null , ( Boolean ) null );
101
101
} catch (ApiException e ) {
102
102
throw KubernetesException .fromApiException (e );
103
103
}
@@ -113,7 +113,7 @@ public Double minimumRamGb() {
113
113
for (V1LimitRange limit : listLimits (null , null , null ).getItems ())
114
114
for (V1LimitRangeItem item : limit .getSpec ().getLimits ()) {
115
115
if (item .getMin () != null && item .getMin ().get (RESOURCE_MEM_KEY ) != null ) {
116
- Quantity quantity = new QuantityFormatter (). parse ( item .getMin ().get (RESOURCE_MEM_KEY ) );
116
+ Quantity quantity = item .getMin ().get (RESOURCE_MEM_KEY );
117
117
if (returnValue .compareTo (quantity .getNumber ()) == -1 ) returnValue = quantity .getNumber ();
118
118
}
119
119
}
0 commit comments