public static Labels fromResource(HasMetadata resource) {
        Map<String, String> additionalLabels = resource.getMetadata().getLabels();

        if (additionalLabels != null) {
            additionalLabels = additionalLabels
                .entrySet()
                .stream()
                .filter(entryset -> !STRIMZI_LABELS_EXCLUSION_PATTERN.matcher(entryset.getKey()).matches())
                .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
        }

        return additionalLabels(additionalLabels);
    }
@Test
    public void testFromResourceWithInvalidStrimziLabelsSecret() {
        Map<String, String> labelsMap = new HashMap<>();
        labelsMap.put(Labels.STRIMZI_DOMAIN + "something", "value");
        Secret secret = new SecretBuilder().withNewMetadata().withLabels(labelsMap).endMetadata().build();
        assertThrows(IllegalArgumentException.class, () -> Labels.fromResource(secret));
    }