feat: Use single kustomization for all alerts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
5
configs/alerts/kustomization.yaml
Normal file
5
configs/alerts/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- telegram
|
||||
- repo
|
||||
@@ -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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user