mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-28 00:52:13 +00:00
6ce841ca22
* Fix scheme required for webhook url in amtool This commit fixes issue #3505 where amtool would fail with "error: scheme required for webhook url" when using amtool with --alertmanager.url. The issue here is that UnmarshalYaml for WebhookConfig checks if the scheme is present when c.URL is non-nil. However, UnmarshalYaml for SecretURL returns a non-nil, default value url.URL{} if the response from api/v2/status contains <secret> as the webhook URL. Signed-off-by: George Robinson <george.robinson@grafana.com> * Add test for config routes test Signed-off-by: George Robinson <george.robinson@grafana.com> --------- Signed-off-by: George Robinson <george.robinson@grafana.com> |
||
---|---|---|
.. | ||
testdata | ||
config_test.go | ||
config.go | ||
coordinator_test.go | ||
coordinator.go | ||
notifiers_test.go | ||
notifiers.go |