Skip to content

LimitRange.Spec.Limits omitempty #78

Open
@colinhoglund

Description

It seems like the following field should probably omitempty, so that json.Unmarshal of an empty LimitRange doesn't zero out non-empty Limits.

Limits []LimitRangeItem `json:"limits" protobuf:"bytes,1,rep,name=limits"`

Is there any reason this is not omitempty? If not, does it make sense to open a PR to change this?

Metadata

Assignees

No one assigned

    Labels

    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions