mirror of https://github.com/linkerd/linkerd2.git
This adds the policy CRD APIs for `Server` and `ServerAuthorization` CRDs. The structure of each (in their respective `types.go`) is based off the `policy-crd.yaml` specs for each CRD. Unlike service profiles, servers and server authorizations use the `oneof` extensively so I encoded that as a struct with a pointer for each possible `oneof`. For example, a server's `PodSelector` is either `MatchExpressions` or `MatchLabels`. Therefore, a `PodSelector` is defined as: ``` type PodSelector struct { MatchExpressions *MatchExpressions MatchLabels *MatchLabels } ``` Closes #6970 Signed-off-by: Kevin Leimkuhler <kevin@kleimkuhler.com> |
||
---|---|---|
.. | ||
destination-client | ||
policy-client |