mirror of
https://github.com/ysoftdevs/argo-poc.git
synced 2026-03-11 21:05:33 +01:00
json experiment
This commit is contained in:
@@ -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
41
apps/argo-cd/argocd.json
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user