47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: sorcerer
|
|
namespace: argocd
|
|
spec:
|
|
goTemplate: true
|
|
generators:
|
|
- list:
|
|
elements:
|
|
- cluster: https://10.255.241.99:4443
|
|
env: prod
|
|
hostname: sorcerer.srv.archive.oceanbox.io
|
|
autoSync: false
|
|
prune: true
|
|
- cluster: https://10.255.241.99:4443
|
|
env: staging
|
|
hostname: sorcerer.beta.archive.oceanbox.io
|
|
autoSync: true
|
|
prune: true
|
|
template:
|
|
metadata:
|
|
name: '{{ .env }}-sorcerer'
|
|
spec:
|
|
project: atlantis
|
|
destination:
|
|
namespace: oceanbox
|
|
server: '{{ .cluster }}'
|
|
sources:
|
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
|
targetRevision: dev
|
|
path: charts/sorcerer
|
|
plugin:
|
|
name: kustomize-helm-with-rewrite
|
|
parameters:
|
|
- name: env
|
|
string: '{{ .env }}'
|
|
- name: hostname
|
|
string: '{{ .hostname }}'
|
|
templatePatch: |
|
|
{{- if .autoSync }}
|
|
spec:
|
|
syncPolicy:
|
|
automated:
|
|
prune: {{ .prune }}
|
|
{{- end }}
|