Disable headlamp
This commit is contained in:
35
apps/applicationset-headlamp.yaml.disable
Normal file
35
apps/applicationset-headlamp.yaml.disable
Normal file
@@ -0,0 +1,35 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: headlamp-apps
|
||||
namespace: argocd-ops
|
||||
spec:
|
||||
generators:
|
||||
- git:
|
||||
repoURL: https://git.gkdomaine.fr/kubernetes/argocd.git
|
||||
revision: main
|
||||
files:
|
||||
- path: "headlamp/*/config.json" # Il lit le fichier de config
|
||||
template:
|
||||
metadata:
|
||||
# {{path.basename}} sera remplacé par "dev" ou "prd"
|
||||
name: 'headlamp-{{path.basename}}'
|
||||
spec:
|
||||
project: '{{path.basename}}'
|
||||
source:
|
||||
repoURL: https://git.gkdomaine.fr/kubernetes/argocd.git
|
||||
targetRevision: main
|
||||
path: '{{path}}' # Utilise le chemin du dossier trouvé
|
||||
helm:
|
||||
valueFiles:
|
||||
- values.yaml
|
||||
destination:
|
||||
name: '{{name}}' # Il utilise la variable définie dans config.json
|
||||
# server: '{{server}}' # Il utilise la variable définie dans config.json # Il utilise la variable définie dans config.json
|
||||
namespace: 'headlamp-{{path.basename}}'
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
Reference in New Issue
Block a user