public class ResourcePropertiesRegistry extends Object implements ResourcePropertyKeys
ANNOTATIONS, APIVERSION, CREATION_TIMESTAMP, KIND, LABELS, METADATA_NAME, NAME, NAMESPACE, OBJECTS, PORTS, PROTOCOL, TYPE, VALUE
Modifier and Type | Method and Description |
---|---|
Map<String,String[]> |
get(String apiVersion,
String kind)
Retrieve a given resource property map for a given version
|
static ResourcePropertiesRegistry |
getInstance() |
KubernetesAPIVersion |
getMaxSupportedKubernetesVersion(List<KubernetesAPIVersion> serverVersions)
The maximum Kubernetes API supported by this client
|
OpenShiftAPIVersion |
getMaxSupportedOpenShiftVersion(List<OpenShiftAPIVersion> serverVersions)
The maximum OpenShift API supported by this client
|
KubernetesAPIVersion[] |
getSupportedKubernetesVersions() |
OpenShiftAPIVersion[] |
getSupportedOpenShiftVersions() |
public static final ResourcePropertiesRegistry getInstance()
public Map<String,String[]> get(String apiVersion, String kind)
apiVersion
- kind
- public KubernetesAPIVersion[] getSupportedKubernetesVersions()
public OpenShiftAPIVersion[] getSupportedOpenShiftVersions()
public KubernetesAPIVersion getMaxSupportedKubernetesVersion(List<KubernetesAPIVersion> serverVersions)
IncompatibleApiVersionsException
- if the client can not support the serverpublic OpenShiftAPIVersion getMaxSupportedOpenShiftVersion(List<OpenShiftAPIVersion> serverVersions)
IncompatibleApiVersionsException
- if the client can not support the serverCopyright © 2016 Red Hat, Inc. All rights reserved.