From e331390928565c28c5c4c6ca740fe9ac8c8ef170 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 22 Sep 2024 02:36:51 +0100 Subject: [PATCH] fix flux alerts? --- infrastructure/alerting/flux/alert.yaml | 14 ++++++++++---- .../alerting/flux/discord-secret.yaml | 18 ------------------ .../alerting/flux/kustomization.yaml | 1 - 3 files changed, 10 insertions(+), 23 deletions(-) delete mode 100644 infrastructure/alerting/flux/discord-secret.yaml diff --git a/infrastructure/alerting/flux/alert.yaml b/infrastructure/alerting/flux/alert.yaml index 45bf105..43e4ecd 100644 --- a/infrastructure/alerting/flux/alert.yaml +++ b/infrastructure/alerting/flux/alert.yaml @@ -1,3 +1,13 @@ +--- +apiVersion: notification.toolkit.fluxcd.io/v1beta3 +kind: Provider +metadata: + name: discord + namespace: flux-system +spec: + type: discord + address: "https://discord.com/api/webhooks/1287224007820574841/4lZh3e3OxI6Qu0BnzyEBzbGBc3tdhzWG66Dh9t8RdVbenClhOOAnqooclrw1amRoY5nB" +--- apiVersion: notification.toolkit.fluxcd.io/v1beta3 kind: Alert metadata: @@ -5,10 +15,6 @@ metadata: namespace: flux-system spec: summary: "Discord Alert" - # eventMetadata: - # env: "production" - # cluster: "my-cluster" - # region: "us-east-2" providerRef: name: discord-webhook eventSeverity: info diff --git a/infrastructure/alerting/flux/discord-secret.yaml b/infrastructure/alerting/flux/discord-secret.yaml deleted file mode 100644 index 481652e..0000000 --- a/infrastructure/alerting/flux/discord-secret.yaml +++ /dev/null @@ -1,18 +0,0 @@ ---- -apiVersion: notification.toolkit.fluxcd.io/v1beta3 -kind: Provider -metadata: - name: discord - namespace: flux-system -spec: - type: discord - secretRef: - name: discord-webhook ---- -apiVersion: v1 -kind: Secret -metadata: - name: discord-webhook - namespace: flux-system -stringData: - address: "https://discord.com/api/webhooks/1287224007820574841/4lZh3e3OxI6Qu0BnzyEBzbGBc3tdhzWG66Dh9t8RdVbenClhOOAnqooclrw1amRoY5nB" diff --git a/infrastructure/alerting/flux/kustomization.yaml b/infrastructure/alerting/flux/kustomization.yaml index 4ccc119..601ed78 100644 --- a/infrastructure/alerting/flux/kustomization.yaml +++ b/infrastructure/alerting/flux/kustomization.yaml @@ -2,5 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - - discord-secret.yaml - alert.yaml