51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
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
|
|
env: staging
|
|
hostname: atlantis.beta.oceanbox.io
|
|
autoSync: true
|
|
prune: true
|
|
template:
|
|
metadata:
|
|
name: '{{ .env }}-atlantis'
|
|
spec:
|
|
project: atlantis
|
|
destination:
|
|
namespace: atlantis
|
|
server: '{{ .cluster }}'
|
|
sources:
|
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
|
targetRevision: main
|
|
path: charts/atlantis
|
|
plugin:
|
|
name: kustomize-helm-with-rewrite
|
|
parameters:
|
|
- name: env
|
|
string: '{{ .env }}'
|
|
- name: hostname
|
|
string: '{{ .hostname }}'
|
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
|
targetRevision: main
|
|
path: charts/atlantis/manifests
|
|
templatePatch: |
|
|
{{- if .autoSync }}
|
|
spec:
|
|
syncPolicy:
|
|
automated:
|
|
prune: {{ .prune }}
|
|
selfHeal: false
|
|
{{- end }}
|