Class KubernetesVersionPriority
- java.lang.Object
-
- io.fabric8.kubernetes.client.utils.KubernetesVersionPriority
-
public class KubernetesVersionPriority extends Object
A util class that allows to deal with kubernetes versions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
highestPriority(List<String> versions)
Returns the version with the highest priority for the given list of versions.
-
-
-
Method Detail
-
highestPriority
public static String highestPriority(List<String> versions)
Returns the version with the highest priority for the given list of versions.- Parameters:
versions
- the versions to pick the version with the highest priority from- Returns:
- the version with the highest priority
- See Also:
CustomResourceDefinitionVersion.getName()
,CustomResourceDefinitionSpec.getVersions()
-
-