linkerd2/policy-controller
Oliver Gould 7b5be9a27d
policy: Use `NonZeroU16` to represent ports (#8897)
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>
2022-07-15 11:41:56 -07:00
..
core policy: Use `NonZeroU16` to represent ports (#8897) 2022-07-15 11:41:56 -07:00
grpc policy: Use `NonZeroU16` to represent ports (#8897) 2022-07-15 11:41:56 -07:00
k8s policy: Use `NonZeroU16` to represent ports (#8897) 2022-07-15 11:41:56 -07:00
src policy: Use `NonZeroU16` to represent ports (#8897) 2022-07-15 11:41:56 -07:00
.dockerignore Import the linkerd-policy-controller (#6485) 2021-08-11 12:56:12 -07:00
Cargo.toml policy: Add HTTPRoute indexing (#8795) 2022-07-14 09:04:48 -07:00
amd64.dockerfile dev: Update build tooling (#8883) 2022-07-14 08:27:44 -07:00
arm.dockerfile dev: Update build tooling (#8883) 2022-07-14 08:27:44 -07:00
arm64.dockerfile dev: Update build tooling (#8883) 2022-07-14 08:27:44 -07:00