public class ApiVersionUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> String |
apiGroup(T item,
String apiGroup)
Extracts apiGroupName from apiGroupVersion when in resource for apiGroupName/acpiGroupVersion
combination
|
static <T> String |
apiVersion(T item,
String apiVersion)
Returns the api version falling back to the items apiGroupVersion if not null.
|
public static <T> String apiGroup(T item, String apiGroup)
T - the item typeitem - resource which is being usedapiGroup - apiGroupName present if anyCopyright © 2015–2020 Red Hat. All rights reserved.