diff --git a/.nancy-ignore b/.nancy-ignore index e69de29bb..c000d8677 100644 --- a/.nancy-ignore +++ b/.nancy-ignore @@ -0,0 +1,2 @@ +# pkg:golang/golang.org/x/net@v0.29.0 +CVE-2024-8421 diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d86a2e5b..69105c297 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Removed + +- Remove unused `#alert` and `#alert-test-installation` slack integration. + ## [4.78.1] - 2024-07-04 ### Fixed diff --git a/files/templates/alertmanager/alertmanager.yaml b/files/templates/alertmanager/alertmanager.yaml index d6abafdfe..dd512335c 100644 --- a/files/templates/alertmanager/alertmanager.yaml +++ b/files/templates/alertmanager/alertmanager.yaml @@ -153,12 +153,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -509,42 +503,6 @@ receivers: - api_key: [[ .OpsgenieKey ]] tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - [[- if eq .Pipeline "stable" ]] - - channel: '#alert' - [[- else ]] - - channel: '#alert-test-[[ .Installation ]]' - [[- end ]] - [[- if .SlackApiToken ]] - http_config: - authorization: - type: Bearer - credentials: [[ .SlackApiToken ]] - [[- if .ProxyURL ]] - proxy_url: [[ .ProxyURL ]] - [[- end ]] - [[- end ]] - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-1-capa-mc.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-1-capa-mc.golden index a16242c08..2765e3898 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-1-capa-mc.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-1-capa-mc.golden @@ -96,12 +96,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -331,29 +325,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-2-capa.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-2-capa.golden index a16242c08..2765e3898 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-2-capa.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-2-capa.golden @@ -96,12 +96,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -331,29 +325,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-3-capz.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-3-capz.golden index a16242c08..2765e3898 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-3-capz.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-3-capz.golden @@ -96,12 +96,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -331,29 +325,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-4-eks.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-4-eks.golden index a16242c08..2765e3898 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-4-eks.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-4-eks.golden @@ -96,12 +96,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -331,29 +325,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-5-gcp.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-5-gcp.golden index a16242c08..2765e3898 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-5-gcp.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/capi/case-5-gcp.golden @@ -96,12 +96,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -331,29 +325,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/vintage/case-1-vintage-mc.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/vintage/case-1-vintage-mc.golden index a16242c08..2765e3898 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/vintage/case-1-vintage-mc.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/vintage/case-1-vintage-mc.golden @@ -96,12 +96,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -331,29 +325,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/vintage/case-2-aws-v16.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/vintage/case-2-aws-v16.golden index a16242c08..2765e3898 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/vintage/case-2-aws-v16.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/vintage/case-2-aws-v16.golden @@ -96,12 +96,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -331,29 +325,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/vintage/case-3-aws-v18.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/vintage/case-3-aws-v18.golden index a16242c08..2765e3898 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/vintage/case-3-aws-v18.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/classic/vintage/case-3-aws-v18.golden @@ -96,12 +96,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -331,29 +325,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-1-capa-mc.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-1-capa-mc.golden index b0c341263..13b6ba7b4 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-1-capa-mc.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-1-capa-mc.golden @@ -105,12 +105,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -350,29 +344,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-2-capa.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-2-capa.golden index b0c341263..13b6ba7b4 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-2-capa.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-2-capa.golden @@ -105,12 +105,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -350,29 +344,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-3-capz.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-3-capz.golden index b0c341263..13b6ba7b4 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-3-capz.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-3-capz.golden @@ -105,12 +105,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -350,29 +344,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-4-eks.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-4-eks.golden index b0c341263..13b6ba7b4 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-4-eks.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-4-eks.golden @@ -105,12 +105,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -350,29 +344,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-5-gcp.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-5-gcp.golden index b0c341263..13b6ba7b4 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-5-gcp.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/capi/case-5-gcp.golden @@ -105,12 +105,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -350,29 +344,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/vintage/case-1-vintage-mc.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/vintage/case-1-vintage-mc.golden index b0c341263..13b6ba7b4 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/vintage/case-1-vintage-mc.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/vintage/case-1-vintage-mc.golden @@ -105,12 +105,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -350,29 +344,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/vintage/case-2-aws-v16.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/vintage/case-2-aws-v16.golden index b0c341263..13b6ba7b4 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/vintage/case-2-aws-v16.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/vintage/case-2-aws-v16.golden @@ -105,12 +105,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -350,29 +344,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/vintage/case-3-aws-v18.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/vintage/case-3-aws-v18.golden index b0c341263..13b6ba7b4 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/vintage/case-3-aws-v18.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/mimir-enabled/vintage/case-3-aws-v18.golden @@ -105,12 +105,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -350,29 +344,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-1-capa-mc.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-1-capa-mc.golden index 05537d03f..fceeed42f 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-1-capa-mc.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-1-capa-mc.golden @@ -96,12 +96,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -367,33 +361,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - http_config: - authorization: - type: Bearer - credentials: some-token - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-2-capa.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-2-capa.golden index 05537d03f..fceeed42f 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-2-capa.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-2-capa.golden @@ -96,12 +96,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -367,33 +361,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - http_config: - authorization: - type: Bearer - credentials: some-token - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-3-capz.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-3-capz.golden index 05537d03f..fceeed42f 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-3-capz.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-3-capz.golden @@ -96,12 +96,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -367,33 +361,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - http_config: - authorization: - type: Bearer - credentials: some-token - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-4-eks.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-4-eks.golden index 05537d03f..fceeed42f 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-4-eks.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-4-eks.golden @@ -96,12 +96,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -367,33 +361,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - http_config: - authorization: - type: Bearer - credentials: some-token - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-5-gcp.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-5-gcp.golden index 05537d03f..fceeed42f 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-5-gcp.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/capi/case-5-gcp.golden @@ -96,12 +96,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -367,33 +361,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - http_config: - authorization: - type: Bearer - credentials: some-token - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/vintage/case-1-vintage-mc.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/vintage/case-1-vintage-mc.golden index 05537d03f..fceeed42f 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/vintage/case-1-vintage-mc.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/vintage/case-1-vintage-mc.golden @@ -96,12 +96,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -367,33 +361,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - http_config: - authorization: - type: Bearer - credentials: some-token - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/vintage/case-2-aws-v16.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/vintage/case-2-aws-v16.golden index 05537d03f..fceeed42f 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/vintage/case-2-aws-v16.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/vintage/case-2-aws-v16.golden @@ -96,12 +96,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -367,33 +361,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - http_config: - authorization: - type: Bearer - credentials: some-token - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true diff --git a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/vintage/case-3-aws-v18.golden b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/vintage/case-3-aws-v18.golden index 05537d03f..fceeed42f 100644 --- a/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/vintage/case-3-aws-v18.golden +++ b/service/controller/resource/alerting/alertmanagerconfig/test/alertmanager-config/slack-token/vintage/case-3-aws-v18.golden @@ -96,12 +96,6 @@ route: - team="rocket" continue: false - # Team Ops Slack - - receiver: team_ops_slack - matchers: - - severity=~"page|notify" - continue: true - # Team Turtles Slack - receiver: team_turtles_slack matchers: @@ -367,33 +361,6 @@ receivers: - api_key: opsgenie-key tags: "{{ (index .Alerts 0).Labels.alertname }},{{ (index .Alerts 0).Labels.cluster_type }},{{ (index .Alerts 0).Labels.severity }},{{ (index .Alerts 0).Labels.team }},{{ (index .Alerts 0).Labels.area }},{{ (index .Alerts 0).Labels.service_priority }},{{ (index .Alerts 0).Labels.provider }},{{ (index .Alerts 0).Labels.installation }},{{ (index .Alerts 0).Labels.pipeline }}" -- name: team_ops_slack - slack_configs: - - channel: '#alert-test-test-installation' - http_config: - authorization: - type: Bearer - credentials: some-token - send_resolved: true - actions: - - type: button - text: ':green_book: OpsRecipe' - url: '{{ template "__runbookurl" . }}' - style: '{{ if eq .Status "firing" }}primary{{ else }}default{{ end }}' - - type: button - text: ':coffin: Linked PMs' - url: '{{ template "__alert_linked_postmortems" . }}' - - type: button - text: ':mag: Query' - url: '{{ template "__alerturl" . }}' - - type: button - text: ':grafana: Dashboard' - url: '{{ template "__dashboardurl" . }}' - - type: button - text: ':no_bell: Silence' - url: '{{ template "__alert_silence_link" . }}' - style: '{{ if eq .Status "firing" }}danger{{ else }}default{{ end }}' - inhibit_rules: - source_matchers: - inhibit_kube_state_metrics_down=true