Is there any limit for "ORDER"

Hi all,

Is there any limit in number while using “ORDER”? Let say 1000,2000 etc?
If so, please share how many ORDER we can use in a cluster.

The docs describe this field as a “float”, see: Network policy

It’s written in golang, so its a float64 with 52-bits of precision. Technically you could use float values up to the limit of a float64 but I’d stick to integers less than 9,007,199,254,740,992.

Negative numbers probably also work, but if you have 9,007,199,254,740,992 positive integers, do you really need them?

Why float64 ? Datamodel is specced as JSON and that’s JavaScript’s typical number format.

The only other thing to know is that kubernetes network policies get translated into policies with order=1000.