feat: Use single kustomization for all alerts

This commit is contained in:
2025-12-15 01:18:44 +01:00
parent e11250594f
commit 8046ec13aa
5 changed files with 10 additions and 30 deletions

View File

@@ -13,6 +13,5 @@ resources:
- ../../configs/artifacts.yaml
- ../../configs/letsencrypt/letsencrypt.yaml
- ../../configs/certificates/certificates.yaml
- ../../configs/alerts/telegram/alerts-telegram.yaml
- ../../configs/alerts/repo/alerts-repo.yaml
- ../../configs/alerts/alerts.yaml
- ../../configs/longhorn-jobs/longhorn-jobs.yaml

View File

@@ -1,7 +1,7 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: alerts-repo
name: alerts
namespace: flux-system
spec:
interval: 1h
@@ -9,7 +9,7 @@ spec:
timeout: 5m
sourceRef:
kind: ExternalArtifact
name: alerts-repo
name: alerts
decryption:
provider: sops
secretRef:

View File

@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- telegram
- repo

View File

@@ -1,19 +0,0 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: alerts-telegram
namespace: flux-system
spec:
interval: 1h
retryInterval: 2m
timeout: 5m
sourceRef:
kind: ExternalArtifact
name: alerts-telegram
decryption:
provider: sops
secretRef:
name: sops-gpg
path: ./
prune: true
wait: true

View File

@@ -19,15 +19,10 @@ spec:
copy:
- from: "@foundation/configs/certificates/**"
to: "@artifact/"
- name: alerts-telegram
- name: alerts
originRevision: "@foundation"
copy:
- from: "@foundation/configs/alerts/telegram/**"
to: "@artifact/"
- name: alerts-repo
originRevision: "@foundation"
copy:
- from: "@foundation/configs/alerts/repo/**"
- from: "@foundation/configs/alerts/**"
to: "@artifact/"
- name: longhorn-jobs
originRevision: "@foundation"