public static boolean checkPodLabels(V1Pod pod, Map<String, String> labels) {
        if (pod == null) {
            return false;
        }
        if (labels == null || labels.isEmpty()) {
            return true;
        }
        Map<String, String> podLabels = pod.getMetadata().getLabels();

        if (podLabels == null) {
            return false;
        }

        return podLabels.entrySet().containsAll(labels.entrySet());
    }
Check if pods contains passed labels(key as well as value)
@param pod
@param labels
@return true if pod contains passed labels, else false
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/util/K8sPodUtil.java