in spark-operator/src/main/java/org/apache/spark/k8s/operator/metrics/healthcheck/SentinelManager.java [74:83]
private static boolean shouldSentinelWatchGivenNamespace(String namespace) {
if (!Utils.getWatchedNamespaces().isEmpty()
&& !Utils.getWatchedNamespaces().contains(namespace)) {
if (log.isErrorEnabled()) {
log.error("Skip watching sentinel resource in namespace {}", namespace);
}
return false;
}
return true;
}