update config

This commit is contained in:
2026-01-11 07:00:31 +01:00
parent e2fde321f2
commit f9fff1a67f
3 changed files with 28 additions and 10 deletions

View File

@@ -28,15 +28,15 @@ spec:
- path.basename
template:
metadata:
name: 'headlamp-{{path.basename}}'
name: 'headlamp-{{environment}}'
spec:
project: '{{path.basename}}'
project: '{{environment}}'
source:
repoURL: https://git.gkdomaine.fr/kubernetes/argocd.git
targetRevision: main
repoURL: '{{repository}}'
targetRevision: '{{targetRevision}}'
# Construit explicitement le chemin Helm à partir du basename
# pour éviter que {{path}} prenne la valeur du fichier config.json
path: 'helm/headlamp/{{path.basename}}'
path: '{{helmPath}}/headlamp/{{environment}}'
helm:
valueFiles:
- values.yaml
@@ -45,10 +45,10 @@ spec:
# (deuxième générateur du merge)
name: '{{name}}'
# server: '{{server}}'
namespace: 'headlamp-{{path.basename}}'
namespace: 'headlamp-{{environment}}'
syncPolicy:
automated:
prune: true
selfHeal: true
prune: '{{prune}}'
selfHeal: '{{selfHeal}}'
syncOptions:
- CreateNamespace=true
- CreateNamespace='{{CreateNamespace}}'

View File

@@ -0,0 +1,11 @@
{
"environment": "dev",
"name": "cluster-dev",
"repository": "https://git.gkdomaine.fr/kubernetes/argocd.git",
"targetRevision": "main",
"helmPath": "helm",
"autoSync": true,
"prune": true,
"selfHeal": true,
"CreateNamespace": true
}

View File

@@ -1,4 +1,11 @@
{
"environment": "dev",
"name": "cluster-dev",
"server": "https://10.78.106.100:6444"
"repository": "https://git.gkdomaine.fr/kubernetes/argocd.git",
"targetRevision": "main",
"helmPath": "helm",
"autoSync": true,
"prune": true,
"selfHeal": true,
"CreateNamespace": true
}