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

*: bump to Go 1.17 #2792

Merged
merged 2 commits into from
Dec 22, 2021
Merged

Conversation

simonpasquier
Copy link
Member

No description provided.

Signed-off-by: Simon Pasquier <[email protected]>
Signed-off-by: Simon Pasquier <[email protected]>
@simonpasquier simonpasquier marked this pull request as ready for review December 20, 2021 11:44
Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@simonpasquier simonpasquier merged commit 48a9976 into prometheus:main Dec 22, 2021
@simonpasquier simonpasquier deleted the bump-go-1.17 branch December 22, 2021 13:06
dubyte pushed a commit to dubyte/alertmanager that referenced this pull request Jan 26, 2022
* *: bump to Go 1.17

Signed-off-by: Simon Pasquier <[email protected]>

* *: fix yamllint errors

Signed-off-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>
simonpasquier added a commit that referenced this pull request Mar 4, 2022
* add active time interval

Signed-off-by: Sinuhe Tellez <[email protected]>

* fix active time interval

Signed-off-by: Sinuhe Tellez <[email protected]>

* fix unittests for active time interval

Signed-off-by: Sinuhe Tellez <[email protected]>

* Update notify/notify.go

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Update dispatch/route.go

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* split the stage for active and mute intervals

Signed-off-by: Sinuhe Tellez <[email protected]>

* Update notify/notify.go

Adds doc for a helper function

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Update notify/notify.go

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Update notify/notify.go

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Update notify/notify.go

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* fix code after commit suggestions

Signed-off-by: Sinuhe Tellez <[email protected]>

* Making mute_time_interval and time_intervals can coexist in the config

Signed-off-by: Sinuhe Tellez <[email protected]>

* docs: configuration's doc has been updated about time intervals

Signed-off-by: Sinuhe Tellez <[email protected]>

* Update config/config.go

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Update docs/configuration.md

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Update docs/configuration.md

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Update docs/configuration.md

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Update docs/configuration.md

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* updates configuration readme to improve active time description

Signed-off-by: Sinuhe Tellez <[email protected]>

* merge deprecated mute_time_intervals and time_intervals

Signed-off-by: Sinuhe Tellez <[email protected]>

* Update docs/configuration.md

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Update docs/configuration.md

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Update docs/configuration.md

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Update docs/configuration.md

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Update docs/configuration.md

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Update docs/configuration.md

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Update cmd/alertmanager/main.go

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Update cmd/alertmanager/main.go

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* fmt main.go

Signed-off-by: Sinuhe Tellez <[email protected]>

* Update docs/configuration.md

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Update docs/configuration.md

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* fix lint error

Signed-off-by: clyang82 <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Document that matchers are ANDed together

Signed-off-by: Mac Chaffee <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Remove extra parentheticals

Signed-off-by: Mac Chaffee <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* config: root route should have empty matchers

Unmarshal should validate that the root route does
not contain any matchers. Prior to this change,
only the deprecated match structures were checked.

Signed-off-by: Philip Gough <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* chore: Let git ignore temporary files for ui/app

Signed-off-by: nekketsuuu <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* adding max_alerts parameter to slack webhook config

correcting the logic to trucate fields instead of dropping alerts in the slack integration

Signed-off-by: Prashant Balachandran <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* *: bump to Go 1.17 (#2792)

* *: bump to Go 1.17

Signed-off-by: Simon Pasquier <[email protected]>

* *: fix yamllint errors

Signed-off-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Automate CSS-inlining for default HTML email template (#2798)

* Automate CSS-inlining for default HTML email template

The original HTML email template was added in `template/email.html`.
It looks like the CSS was manually inlined.  Most likely using the
premailer.dialect.ca web form, which is mentioned in the README for
the Mailgun transactional-email-templates project.  The resulting HTML
with inlined CSS was then copied into `template/default.tmpl`.  This
has resulted in `email.html` and `default.tmpl` diverging at times.

This commit adds build automation to inline the CSS automatically
using [juice][1].  The Go template containing the resulting HTML has
been moved into its own file to avoid the script that performs the CSS
inlining having to parse the `default.tmpl` file to insert it there.

Fixes #1939.

[1]: https://www.npmjs.com/package/juice

Signed-off-by: Brad Ison <[email protected]>

* Update asset/assets_vfsdata.go

Signed-off-by: Brad Ison <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* go.{mod,sum}: update Go dependencies

Signed-off-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* amtool to support http_config to access alertmanager (#2764)

* Support http_config for amtool

Co-authored-by: Julien Pivotto <[email protected]>
Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: clyang82 <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* notify/sns: detect FIFO topic based on the rendered value

Since the TopicARN field is a template string, it's safer to check for
the ".fifo" suffix in the rendered string.

Signed-off-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* config: delegate Sigv4 validation to the inner type

This change also adds unit tests for SNS configuration.

Signed-off-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* fix unittests

Signed-off-by: Sinuhe Tellez <[email protected]>

* fix comment about active time interval

Signed-off-by: Sinuhe Tellez <[email protected]>

* fix another comment about active time interval

Signed-off-by: Sinuhe Tellez <[email protected]>

* Update docs/configuration.md

Fix typo in documentation

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

* Update docs/configuration.md

Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Sinuhe Tellez <[email protected]>

Co-authored-by: Simon Pasquier <[email protected]>
Co-authored-by: clyang82 <[email protected]>
Co-authored-by: Mac Chaffee <[email protected]>
Co-authored-by: Philip Gough <[email protected]>
Co-authored-by: nekketsuuu <[email protected]>
Co-authored-by: Prashant Balachandran <[email protected]>
Co-authored-by: Simon Pasquier <[email protected]>
Co-authored-by: Brad Ison <[email protected]>
Co-authored-by: Julien Pivotto <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants