mirror of https://github.com/linkerd/linkerd2.git
In various places we read port configurations from external sources (either the Kubernetes API or gRPC clients). We have manual checks in place to ensure that port values are never zero. We can instead assert this with the type system by using `NonZeroU16`. This change updates the policy controller to use `NonZeroU16` for port values. This allows us to replace our manual port value checks with `NonZero::try_from`, etc. Signed-off-by: Oliver Gould <ver@buoyant.io> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |