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