Skip to content

PeeredID of Network object can be negative #116

@vlorinc

Description

@vlorinc

Describe the bug
PeeredID of Network object can be negative, which should not be allowed and causes issue during uint32 conversion.

Expected behavior
When creating Network object with negative PeeredID, error should occur.

Additional context
Other uint32 conversions were secured with kubebuilder validation, but kubebuilder validation of []int32 slice is not possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/networkingNetworking-related tasks and improvements.bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions