Class ResourceCompare
- java.lang.Object
-
- io.fabric8.kubernetes.client.utils.ResourceCompare
-
public class ResourceCompare extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
compareKubernetesList(Map<String,Object> leftJson, Map<String,Object> rightJson)
static boolean
compareKubernetesResource(Map<String,Object> leftJson, Map<String,Object> rightJson)
static <T> boolean
equals(T left, T right)
This method returns true when left Kubernetes resource contains all data that's present in right Kubernetes resource, this method won't consider fields that are missing in right parameters.
-
-
-
Method Detail
-
equals
public static <T> boolean equals(T left, T right)
This method returns true when left Kubernetes resource contains all data that's present in right Kubernetes resource, this method won't consider fields that are missing in right parameters. Values which are present in right would only be compared.- Type Parameters:
T
- type for kubernetes resource- Parameters:
left
- kubernetes resource (fetched from cluster)right
- kubernetes resource (provided as input by user)- Returns:
- boolean value whether both resources are actually equal or not
-
compareKubernetesList
public static boolean compareKubernetesList(Map<String,Object> leftJson, Map<String,Object> rightJson)
-
-