enable
This commit is contained in:
47
apps/applicationset-tls-sync-wildcard.yaml
Normal file
47
apps/applicationset-tls-sync-wildcard.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: tls-sync-wildcard
|
||||
namespace: argocd-ops
|
||||
spec:
|
||||
generators:
|
||||
# Le CronJob de synchronisation est déployé UNIQUEMENT sur le cluster OPS
|
||||
- merge:
|
||||
generators:
|
||||
# Premier générateur : scanne les répertoires Helm pour tls-sync-wildcard
|
||||
- git:
|
||||
repoURL: https://git.gkdomaine.fr/kubernetes/argocd.git
|
||||
revision: main
|
||||
directories:
|
||||
- path: "helm/tls-sync-wildcard/*"
|
||||
# Deuxième générateur : lit la config OPS uniquement
|
||||
- git:
|
||||
repoURL: https://git.gkdomaine.fr/kubernetes/argocd.git
|
||||
revision: main
|
||||
files:
|
||||
- path: "configs/ops/config.json"
|
||||
mergeKeys:
|
||||
- path.basename
|
||||
template:
|
||||
metadata:
|
||||
name: 'tls-sync-wildcard-{{path.basename}}'
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: '{{repository}}'
|
||||
targetRevision: '{{targetRevision}}'
|
||||
path: '{{helmPath}}/tls-sync-wildcard/{{path.basename}}'
|
||||
helm:
|
||||
valueFiles:
|
||||
- values.yaml
|
||||
destination:
|
||||
# Déploie uniquement sur le cluster OPS
|
||||
name: '{{name}}'
|
||||
namespace: certificates-{{path.basename}}
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
|
||||
Reference in New Issue
Block a user