Skip to content

Commit

Permalink
move SlackApiToken condition
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoBrigitte committed Dec 17, 2024
1 parent 9d34438 commit 1a40477
Show file tree
Hide file tree
Showing 17 changed files with 306 additions and 18 deletions.
36 changes: 18 additions & 18 deletions files/templates/alertmanager/alertmanager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,13 @@ receivers:
- name: falco_noise_slack
slack_configs:
- channel: '#noise-falco'
[[- if .SlackApiToken ]]
http_config:
[[- if .SlackApiToken ]]
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- end ]]
proxy_from_environment: true
[[- end ]]
send_resolved: true
actions:
- type: button
Expand Down Expand Up @@ -223,13 +223,13 @@ receivers:
[[- else ]]
- channel: '#alert-atlas-test'
[[- end ]]
[[- if .SlackApiToken ]]
http_config:
[[- if .SlackApiToken ]]
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- end ]]
proxy_from_environment: true
[[- end ]]
send_resolved: true
actions:
- type: button
Expand Down Expand Up @@ -257,13 +257,13 @@ receivers:
[[- else ]]
- channel: '#alert-phoenix-test'
[[- end ]]
[[- if .SlackApiToken ]]
http_config:
[[- if .SlackApiToken ]]
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- end ]]
proxy_from_environment: true
[[- end ]]
send_resolved: true
actions:
- type: button
Expand Down Expand Up @@ -291,13 +291,13 @@ receivers:
[[- else ]]
- channel: '#alert-bigmac-test'
[[- end ]]
[[- if .SlackApiToken ]]
http_config:
[[- if .SlackApiToken ]]
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- end ]]
proxy_from_environment: true
[[- end ]]
send_resolved: true
actions:
- type: button
Expand Down Expand Up @@ -325,13 +325,13 @@ receivers:
[[- else ]]
- channel: '#alert-rocket-test'
[[- end ]]
[[- if .SlackApiToken ]]
http_config:
[[- if .SlackApiToken ]]
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- end ]]
proxy_from_environment: true
[[- end ]]
send_resolved: true
actions:
- type: button
Expand All @@ -355,13 +355,13 @@ receivers:
- name: team_shield_slack
slack_configs:
- channel: '#alert-shield'
[[- if .SlackApiToken ]]
http_config:
[[- if .SlackApiToken ]]
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- end ]]
proxy_from_environment: true
[[- end ]]
send_resolved: true
actions:
- type: button
Expand Down Expand Up @@ -389,13 +389,13 @@ receivers:
[[- else ]]
- channel: '#alert-turtles-test'
[[- end ]]
[[- if .SlackApiToken ]]
http_config:
[[- if .SlackApiToken ]]
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- end ]]
proxy_from_environment: true
[[- end ]]
send_resolved: true
actions:
- type: button
Expand All @@ -419,13 +419,13 @@ receivers:
- name: team_tenet_slack
slack_configs:
- channel: '#alert-tenet'
[[- if .SlackApiToken ]]
http_config:
[[- if .SlackApiToken ]]
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- end ]]
proxy_from_environment: true
[[- end ]]
send_resolved: true
actions:
- type: button
Expand All @@ -449,13 +449,13 @@ receivers:
- name: team_honeybadger_slack
slack_configs:
- channel: '#alert-honeybadger'
[[- if .SlackApiToken ]]
http_config:
[[- if .SlackApiToken ]]
authorization:
type: Bearer
credentials: [[ .SlackApiToken ]]
[[- end ]]
proxy_from_environment: true
[[- end ]]
send_resolved: true
actions:
- type: button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ receivers:
- name: falco_noise_slack
slack_configs:
- channel: '#noise-falco'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -141,6 +143,8 @@ receivers:
- name: team_atlas_slack
slack_configs:
- channel: '#alert-atlas-test'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -164,6 +168,8 @@ receivers:
- name: team_phoenix_slack
slack_configs:
- channel: '#alert-phoenix-test'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -187,6 +193,8 @@ receivers:
- name: team_bigmac_slack
slack_configs:
- channel: '#alert-bigmac-test'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -210,6 +218,8 @@ receivers:
- name: team_rocket_slack
slack_configs:
- channel: '#alert-rocket-test'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -233,6 +243,8 @@ receivers:
- name: team_shield_slack
slack_configs:
- channel: '#alert-shield'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -256,6 +268,8 @@ receivers:
- name: team_turtles_slack
slack_configs:
- channel: '#alert-turtles-test'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -279,6 +293,8 @@ receivers:
- name: team_tenet_slack
slack_configs:
- channel: '#alert-tenet'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -302,6 +318,8 @@ receivers:
- name: team_honeybadger_slack
slack_configs:
- channel: '#alert-honeybadger'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ receivers:
- name: falco_noise_slack
slack_configs:
- channel: '#noise-falco'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -141,6 +143,8 @@ receivers:
- name: team_atlas_slack
slack_configs:
- channel: '#alert-atlas-test'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -164,6 +168,8 @@ receivers:
- name: team_phoenix_slack
slack_configs:
- channel: '#alert-phoenix-test'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -187,6 +193,8 @@ receivers:
- name: team_bigmac_slack
slack_configs:
- channel: '#alert-bigmac-test'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -210,6 +218,8 @@ receivers:
- name: team_rocket_slack
slack_configs:
- channel: '#alert-rocket-test'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -233,6 +243,8 @@ receivers:
- name: team_shield_slack
slack_configs:
- channel: '#alert-shield'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -256,6 +268,8 @@ receivers:
- name: team_turtles_slack
slack_configs:
- channel: '#alert-turtles-test'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -279,6 +293,8 @@ receivers:
- name: team_tenet_slack
slack_configs:
- channel: '#alert-tenet'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -302,6 +318,8 @@ receivers:
- name: team_honeybadger_slack
slack_configs:
- channel: '#alert-honeybadger'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ receivers:
- name: falco_noise_slack
slack_configs:
- channel: '#noise-falco'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -141,6 +143,8 @@ receivers:
- name: team_atlas_slack
slack_configs:
- channel: '#alert-atlas-test'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -164,6 +168,8 @@ receivers:
- name: team_phoenix_slack
slack_configs:
- channel: '#alert-phoenix-test'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -187,6 +193,8 @@ receivers:
- name: team_bigmac_slack
slack_configs:
- channel: '#alert-bigmac-test'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -210,6 +218,8 @@ receivers:
- name: team_rocket_slack
slack_configs:
- channel: '#alert-rocket-test'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -233,6 +243,8 @@ receivers:
- name: team_shield_slack
slack_configs:
- channel: '#alert-shield'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -256,6 +268,8 @@ receivers:
- name: team_turtles_slack
slack_configs:
- channel: '#alert-turtles-test'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -279,6 +293,8 @@ receivers:
- name: team_tenet_slack
slack_configs:
- channel: '#alert-tenet'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand All @@ -302,6 +318,8 @@ receivers:
- name: team_honeybadger_slack
slack_configs:
- channel: '#alert-honeybadger'
http_config:
proxy_from_environment: true
send_resolved: true
actions:
- type: button
Expand Down
Loading

0 comments on commit 1a40477

Please sign in to comment.