Skip to content

Allow floating point values for validation:{Minimum|Maximum|MultipleOf} #543

@yhrn

Description

@yhrn

The Kubebuilder CRD validation markers for Minimum, Maximum and MultipleOf currently only takes integral values. If one tries to assign a floating point value, e.g. // +kubebuilder:validation:Minimum=0.5 generation fails with a message like this extra arguments provided: ".5". If the decorated property is a float then it makes sense to have floating point bounds and this is also supported by k8s, see here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions