Skip to content

Feature: Allow configuration of custom enum markers for maxlength linter #95

@everettraven

Description

@everettraven

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions