add config.json
This commit is contained in:
@@ -8,9 +8,8 @@ spec:
|
|||||||
- git:
|
- git:
|
||||||
repoURL: https://git.gkdomaine.fr/kubernetes/argocd.git
|
repoURL: https://git.gkdomaine.fr/kubernetes/argocd.git
|
||||||
revision: main
|
revision: main
|
||||||
# Il va chercher tous les dossiers dans "nextcloud/"
|
files:
|
||||||
directories:
|
- path: "nextcloud/*/config.json" # Il lit le fichier de config
|
||||||
- path: nextcloud/*
|
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
# {{path.basename}} sera remplacé par "dev" ou "prd"
|
# {{path.basename}} sera remplacé par "dev" ou "prd"
|
||||||
@@ -25,8 +24,7 @@ spec:
|
|||||||
valueFiles:
|
valueFiles:
|
||||||
- values.yaml
|
- values.yaml
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: '{{server}}' # Il utilise la variable définie dans config.json
|
||||||
# Déploie dans le namespace "nextcloud-dev" ou "nextcloud-prd"
|
|
||||||
namespace: 'nextcloud-{{path.basename}}'
|
namespace: 'nextcloud-{{path.basename}}'
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated:
|
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