feat: update atlantis charts

This commit is contained in:
2024-02-16 06:25:49 +01:00
parent f35aed93d0
commit 5d50de13cf
14 changed files with 82 additions and 36 deletions
+16 -4
View File
@@ -4,23 +4,28 @@ metadata:
name: atlantis
namespace: argocd
spec:
goTemplate: true
generators:
- list:
elements:
- cluster: https://kubernetes.default.svc
env: prod
hostname: atlantis.srv.oceanbox.io
autoSync: false
prune: true
- cluster: https://staging-vcluster.staging-vcluster:443
env: staging
hostname: atlantis.beta.oceanbox.io
autoSync: true
prune: true
template:
metadata:
name: '{{ env }}-atlantis'
name: '{{ .env }}-atlantis'
spec:
project: atlantis
destination:
namespace: atlantis
server: '{{ cluster }}'
server: '{{ .cluster }}'
sources:
- repoURL: https://gitlab.com/oceanbox/manifests.git
targetRevision: dev
@@ -29,9 +34,16 @@ spec:
name: kustomize-helm-with-rewrite
parameters:
- name: env
string: '{{ env }}'
string: '{{ .env }}'
- name: hostname
string: '{{ hostname }}'
string: '{{ .hostname }}'
- repoURL: https://gitlab.com/oceanbox/manifests.git
targetRevision: dev
path: charts/atlantis/manifests
templatePatch: |
{{- if .autoSync }}
spec:
syncPolicy:
automated:
prune: {{ .prune }}
{{- end }}