public class ResourceCompare extends Object
| Modifier and Type | Method and 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.
|
public static <T> boolean equals(T left,
T right)
T - type for kubernetes resourceleft - kubernetes resource (fetched from cluster)right - kubernetes resource (provided as input by user)public static boolean compareKubernetesList(Map<String,Object> leftJson, Map<String,Object> rightJson)
Copyright © 2015–2022 Red Hat. All rights reserved.