fix flux alerts?

This commit is contained in:
Lee 2024-09-22 02:36:51 +01:00
parent d39f0bb05d
commit e331390928
3 changed files with 10 additions and 23 deletions

@ -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

@ -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"

@ -2,5 +2,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- discord-secret.yaml
- alert.yaml