add config.json
This commit is contained in:
@@ -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:
|
||||
|
||||
1
nextcloud/dev/config.json
Normal file
1
nextcloud/dev/config.json
Normal file
@@ -0,0 +1 @@
|
||||
{"server": "https://kubernetes.default.svc"}
|
||||
1
nextcloud/prd/config.json
Normal file
1
nextcloud/prd/config.json
Normal file
@@ -0,0 +1 @@
|
||||
{"server": "https://kubernetes.default.svc"}
|
||||
Reference in New Issue
Block a user