honeycombio / honeycomb-kubernetes-agent

Application visibility for Kubernetes.
https://honeycomb.io
Apache License 2.0
58 stars 30 forks source link

fix: Validate label selector and paths are mutually exclusive #334

Closed TylerHelmuth closed 1 year ago

TylerHelmuth commented 1 year ago

Which problem is this PR solving?

Short description of the changes

I used validator package to start, but since it can't handle slices of structs and since the error message was unhelpful I ended up doing it myself. You can see the implementation with validator in the first commit.