-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change: make
-error-on-replace
more cooperating (#233)
* change: make `-error-on-replace` more cooperating With this change, the proxy wouldn't necessary return an error if `-error-on-replace` is set and the incoming query has a label matcher overlapping with the enforced label. For instance when the enforced label is `namespace="foo"`, the following expressions aren't rejected anymore: - `up{namespace!="bar"}` - `up{namespace=~"foo|bar"}` - `up{namespace!~"bar"}` The following expressions are rejected as before: - `up{namespace=""}` - `up{namespace="bar"}` - `up{namespace=~"bar|fred"}` - `up{namespace!~"foo"}` Signed-off-by: Simon Pasquier <[email protected]> * Address squat's comments Signed-off-by: Simon Pasquier <[email protected]> --------- Signed-off-by: Simon Pasquier <[email protected]>
- Loading branch information
1 parent
b7b2c74
commit a177f41
Showing
3 changed files
with
773 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.