Skip to content

Commit

Permalink
fix slack_configs http_config missing proxy_url (#1603)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoBrigitte authored May 1, 2024
1 parent fdb4d89 commit 09e5f12
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Ensure proxy url is set when needed within slack_configs

## [4.73.0] - 2024-04-30

### Changed
Expand Down
30 changes: 30 additions & 0 deletions files/templates/alertmanager/alertmanager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ receivers:
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- if .ProxyURL ]]
proxy_url: [[ .ProxyURL ]]
[[- end ]]
[[- end ]]
send_resolved: true
actions:
Expand Down Expand Up @@ -237,6 +240,9 @@ receivers:
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- if .ProxyURL ]]
proxy_url: [[ .ProxyURL ]]
[[- end ]]
[[- end ]]
send_resolved: true
actions:
Expand Down Expand Up @@ -270,6 +276,9 @@ receivers:
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- if .ProxyURL ]]
proxy_url: [[ .ProxyURL ]]
[[- end ]]
[[- end ]]
send_resolved: true
actions:
Expand Down Expand Up @@ -303,6 +312,9 @@ receivers:
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- if .ProxyURL ]]
proxy_url: [[ .ProxyURL ]]
[[- end ]]
[[- end ]]
send_resolved: true
actions:
Expand Down Expand Up @@ -336,6 +348,9 @@ receivers:
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- if .ProxyURL ]]
proxy_url: [[ .ProxyURL ]]
[[- end ]]
[[- end ]]
send_resolved: true
actions:
Expand Down Expand Up @@ -365,6 +380,9 @@ receivers:
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- if .ProxyURL ]]
proxy_url: [[ .ProxyURL ]]
[[- end ]]
[[- end ]]
send_resolved: true
actions:
Expand Down Expand Up @@ -398,6 +416,9 @@ receivers:
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- if .ProxyURL ]]
proxy_url: [[ .ProxyURL ]]
[[- end ]]
[[- end ]]
send_resolved: true
actions:
Expand Down Expand Up @@ -427,6 +448,9 @@ receivers:
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- if .ProxyURL ]]
proxy_url: [[ .ProxyURL ]]
[[- end ]]
[[- end ]]
send_resolved: true
actions:
Expand Down Expand Up @@ -456,6 +480,9 @@ receivers:
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- if .ProxyURL ]]
proxy_url: [[ .ProxyURL ]]
[[- end ]]
[[- end ]]
send_resolved: true
actions:
Expand Down Expand Up @@ -494,6 +521,9 @@ receivers:
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- if .ProxyURL ]]
proxy_url: [[ .ProxyURL ]]
[[- end ]]
[[- end ]]
send_resolved: true
actions:
Expand Down

0 comments on commit 09e5f12

Please sign in to comment.