Ongoing customer issues where both paths and labelSelector are configured.
Short description of the changes
Adds manual validation to check that no watchers have both paths and labelSelector configured at the same time.
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.
Which problem is this PR solving?
paths
andlabelSelector
are configured.Short description of the changes
paths
andlabelSelector
configured at the same time.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 withvalidator
in the first commit.