Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alert rule validation does not understand if/else constructs #5090

Closed
tanji opened this issue Feb 18, 2019 · 1 comment · Fixed by #5107
Closed

Alert rule validation does not understand if/else constructs #5090

tanji opened this issue Feb 18, 2019 · 1 comment · Fixed by #5107
Assignees
Labels
Milestone

Comments

@tanji
Copy link

tanji commented Feb 18, 2019

Since the introduction of #4479, we are unable to validate a previously working alert message template containing the following:

{{ if eq .Level "OK" }}alert is under threshold{{ else }}alert is over threshold{{ end }}

This is a valid template construct as documented in https://golang.org/pkg/text/template/ and it works as intended, therefore it should be accepted as valid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants