From df3f3a88285e39250a624b75b6340b3ffed20cf2 Mon Sep 17 00:00:00 2001 From: Melvin GABALI Date: Sun, 28 Dec 2025 04:11:57 +0100 Subject: [PATCH] add config.json --- apps/applicationset-nextcloud.yaml | 8 +++----- nextcloud/dev/config.json | 1 + nextcloud/prd/config.json | 1 + 3 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 nextcloud/dev/config.json create mode 100644 nextcloud/prd/config.json diff --git a/apps/applicationset-nextcloud.yaml b/apps/applicationset-nextcloud.yaml index 4d4e434..4991893 100644 --- a/apps/applicationset-nextcloud.yaml +++ b/apps/applicationset-nextcloud.yaml @@ -8,9 +8,8 @@ spec: - git: repoURL: https://git.gkdomaine.fr/kubernetes/argocd.git revision: main - # Il va chercher tous les dossiers dans "nextcloud/" - directories: - - path: nextcloud/* + files: + - path: "nextcloud/*/config.json" # Il lit le fichier de config template: metadata: # {{path.basename}} sera remplacé par "dev" ou "prd" @@ -25,8 +24,7 @@ spec: valueFiles: - values.yaml destination: - server: https://kubernetes.default.svc - # Déploie dans le namespace "nextcloud-dev" ou "nextcloud-prd" + server: '{{server}}' # Il utilise la variable définie dans config.json namespace: 'nextcloud-{{path.basename}}' syncPolicy: automated: diff --git a/nextcloud/dev/config.json b/nextcloud/dev/config.json new file mode 100644 index 0000000..e625fef --- /dev/null +++ b/nextcloud/dev/config.json @@ -0,0 +1 @@ +{"server": "https://kubernetes.default.svc"} \ No newline at end of file diff --git a/nextcloud/prd/config.json b/nextcloud/prd/config.json new file mode 100644 index 0000000..e625fef --- /dev/null +++ b/nextcloud/prd/config.json @@ -0,0 +1 @@ +{"server": "https://kubernetes.default.svc"} \ No newline at end of file