-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ignoreTemplatedValues param to the ignoreTemplatedValues va…
…lidator (#49) Signed-off-by: Martin Chodur <[email protected]>
- Loading branch information
Showing
8 changed files
with
40 additions
and
10 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ <h2><a href="#check-severity-label">check-severity-label</a></h2> | |
<h2><a href="#check-team-label">check-team-label</a></h2> | ||
<ul> | ||
<li>Alert has labels: <code>xxx</code></li> | ||
<li>Alert label <code>team</code> has one of the allowed values: <code>[email protected]</code></li> | ||
<li>Alert label <code>team</code> has one of the allowed values: <code>[email protected]</code> (templated values are ignored)</li> | ||
</ul> | ||
|
||
<h2><a href="#check-playbook-annotation">check-playbook-annotation</a></h2> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ Validation rules: | |
|
||
check-team-label | ||
- Alert has labels: `xxx` | ||
- Alert label `team` has one of the allowed values: `[email protected]` | ||
- Alert label `team` has one of the allowed values: `[email protected]` (templated values are ignored) | ||
|
||
check-playbook-annotation | ||
- Alert has any of these annotations: `playbook`,`link` | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ validationRules: | |
label: "team" | ||
allowedValues: | ||
- "[email protected]" | ||
ignoreTemplatedValues: true | ||
|
||
- name: check-playbook-annotation | ||
scope: Alert | ||
|
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