Package no.fintlabs
Class LabelValidator
java.lang.Object
no.fintlabs.LabelValidator
Utility class to use for validating FLAIS mandatory CRD setup.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvalidate(io.fabric8.kubernetes.api.model.HasMetadata crd) Checks if the CRD has all the mandatory labels set.
-
Field Details
-
MANDATORY_LABELS
List of mandatory labels.
-
-
Constructor Details
-
LabelValidator
public LabelValidator()
-
-
Method Details
-
validate
public static void validate(io.fabric8.kubernetes.api.model.HasMetadata crd) Checks if the CRD has all the mandatory labels set.- Parameters:
crd- The CRD to validate- Throws:
IllegalArgumentException- is thrown if any mandatory labels is missing.
-