json experiment

This commit is contained in:
Jan Husak
2025-04-09 15:41:07 +02:00
parent 87ba6ddf40
commit 50a145e07d
2 changed files with 42 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ spec:
# As a side effect, it also allows access to previously defined values, like '.values.stageName'
elements:
# The selector also had troubles with booleans vs. strings, hence the 'yes' and not 'true'
- enabled: '{{ dig "stages" .values.stageName "enabled" false . | ternary "yes" "" }}'
- enabled: '{{ dig "clusters" .values.stageName .values.clusterName "enabled" false . | ternary "yes" "" }}'
appName: "{{ .path.basename }}"
selector:
matchLabels:

41
apps/argo-cd/argocd.json Normal file
View File

@@ -0,0 +1,41 @@
{
"apiVersion": "ysoft.com/v1",
"source": {
"repoURL": "https://github.com/ysoftdevs/argo-poc.git",
"path": "helm-repo/traefik/traefik-35.0.0",
"chartRevision": "traefik",
"valuesRevision": "traefik",
"chart": ""
},
"destination": {
"namespace": "traefik"
},
"syncPolicy": {
"syncOptions": {
"ServerSideApply": true,
"CreateNamespace": true
}
},
"valueFiles": [
"values/registry/%provider%-%stage%-values.yaml",
"values/app-version/%stage%-values.yaml"
],
"clusters": {
"dev": {
"control-plane-dev": {
"enabled": true
},
"ohio": {
"enabled": false
}
},
"prod": {
"control-plane": {
"enabled": true
},
"ireland": {
"enabled": false
}
}
}
}