feat: Use single kustomization for all alerts
This commit is contained in:
@@ -13,6 +13,5 @@ resources:
|
|||||||
- ../../configs/artifacts.yaml
|
- ../../configs/artifacts.yaml
|
||||||
- ../../configs/letsencrypt/letsencrypt.yaml
|
- ../../configs/letsencrypt/letsencrypt.yaml
|
||||||
- ../../configs/certificates/certificates.yaml
|
- ../../configs/certificates/certificates.yaml
|
||||||
- ../../configs/alerts/telegram/alerts-telegram.yaml
|
- ../../configs/alerts/alerts.yaml
|
||||||
- ../../configs/alerts/repo/alerts-repo.yaml
|
|
||||||
- ../../configs/longhorn-jobs/longhorn-jobs.yaml
|
- ../../configs/longhorn-jobs/longhorn-jobs.yaml
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
metadata:
|
metadata:
|
||||||
name: alerts-repo
|
name: alerts
|
||||||
namespace: flux-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
interval: 1h
|
interval: 1h
|
||||||
@@ -9,7 +9,7 @@ spec:
|
|||||||
timeout: 5m
|
timeout: 5m
|
||||||
sourceRef:
|
sourceRef:
|
||||||
kind: ExternalArtifact
|
kind: ExternalArtifact
|
||||||
name: alerts-repo
|
name: alerts
|
||||||
decryption:
|
decryption:
|
||||||
provider: sops
|
provider: sops
|
||||||
secretRef:
|
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:
|
copy:
|
||||||
- from: "@foundation/configs/certificates/**"
|
- from: "@foundation/configs/certificates/**"
|
||||||
to: "@artifact/"
|
to: "@artifact/"
|
||||||
- name: alerts-telegram
|
- name: alerts
|
||||||
originRevision: "@foundation"
|
originRevision: "@foundation"
|
||||||
copy:
|
copy:
|
||||||
- from: "@foundation/configs/alerts/telegram/**"
|
- from: "@foundation/configs/alerts/**"
|
||||||
to: "@artifact/"
|
|
||||||
- name: alerts-repo
|
|
||||||
originRevision: "@foundation"
|
|
||||||
copy:
|
|
||||||
- from: "@foundation/configs/alerts/repo/**"
|
|
||||||
to: "@artifact/"
|
to: "@artifact/"
|
||||||
- name: longhorn-jobs
|
- name: longhorn-jobs
|
||||||
originRevision: "@foundation"
|
originRevision: "@foundation"
|
||||||
|
|||||||
Reference in New Issue
Block a user