public boolean isMatch(Endpoint endpoint) {
            int matchCount = 0;
            for (Map.Entry<String, String> entry : labelMap.entrySet()) {
                for (String endpointLabel : endpoint.getLabelsList()) {
                    // ignore when the key is not match
                    if (endpointLabel.indexOf(entry.getKey()) != 0) {
                        continue;
                    }
                    // ignore when the value is not match
                    if (!StringUtils.substring(endpointLabel, entry.getKey().length() + 1).equals(entry.getValue())) {
                        return false;
                    }
                    matchCount++;

                    // check the match count(full matched) to avoid unnecessary iteration
                    if (matchCount == labelMap.size()) {
                        return true;
                    }
                }
            }
            return false;
        }
validate if the endpoint matches all the labels
oap-server/server-fetcher-plugin/cilium-fetcher-plugin/src/main/java/org/apache/skywalking/oap/server/fetcher/cilium/ExcludeRules.java