In OpenShift, we have some custom markers that set enum values for a field and this results in the maxlength linter stating that a field/type alias should have a maximum length when using this custom marker instead of the standard kubebuilder:validation:Enum marker.
While this particular case is OpenShift-specific, I think it is reasonable to make a generic way to extend this detection logic as there may be other vendors and/or projects that use their own custom markers for CRD generation.
In OpenShift, we have some custom markers that set enum values for a field and this results in the
maxlengthlinter stating that a field/type alias should have a maximum length when using this custom marker instead of the standardkubebuilder:validation:Enummarker.While this particular case is OpenShift-specific, I think it is reasonable to make a generic way to extend this detection logic as there may be other vendors and/or projects that use their own custom markers for CRD generation.