fix: don't selfHeal atlantis resources
This commit is contained in:
@@ -4,24 +4,35 @@ metadata:
|
|||||||
name: atlantis-resources
|
name: atlantis-resources
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
spec:
|
spec:
|
||||||
|
goTemplate: true
|
||||||
generators:
|
generators:
|
||||||
- list:
|
- list:
|
||||||
elements:
|
elements:
|
||||||
- cluster: https://kubernetes.default.svc
|
- cluster: https://kubernetes.default.svc
|
||||||
env: prod
|
env: prod
|
||||||
|
autoSync: false
|
||||||
|
prune: false
|
||||||
# - cluster: https://staging-vcluster.staging-vcluster
|
# - cluster: https://staging-vcluster.staging-vcluster
|
||||||
# env: staging
|
# env: staging
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: '{{ env }}-atlantis-resources'
|
name: "{{ .env }}-atlantis-resources"
|
||||||
spec:
|
spec:
|
||||||
project: aux
|
project: aux
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated: {}
|
automated: {}
|
||||||
destination:
|
destination:
|
||||||
server: '{{ cluster }}'
|
server: "{{ .cluster }}"
|
||||||
namespace: atlantis
|
namespace: atlantis
|
||||||
sources: {}
|
sources: {}
|
||||||
# - repoURL: https://gitlab.com/oceanbox/manifests.git
|
# - repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
# targetRevision: main
|
# targetRevision: main
|
||||||
# path: 'resources/atlantis/manifests/{{ env }}'
|
# path: 'resources/atlantis/manifests/{{ env }}'
|
||||||
|
templatePatch: |
|
||||||
|
{{- if .autoSync }}
|
||||||
|
spec:
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: {{ .prune }}
|
||||||
|
selfHeal: false
|
||||||
|
{{- end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user