39 lines
967 B
YAML
39 lines
967 B
YAML
{{ if .Values.clusterConfig.argo.enabled }}
|
|
{{- range .Values.plume.envs }}
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: {{ . }}-plume
|
|
namespace: argocd
|
|
annotations:
|
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
|
finalizers:
|
|
- resources-finalizer.argocd.argoproj.io
|
|
spec:
|
|
destination:
|
|
namespace: {{ . }}-plume
|
|
server: https://10.255.241.99:4443
|
|
project: default
|
|
sources:
|
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
|
targetRevision: HEAD
|
|
path: helmfile.d
|
|
plugin:
|
|
name: helmfile-cmp
|
|
env:
|
|
- name: CLUSTER_NAME
|
|
value: {{ $.Values.clusterConfig.cluster }}
|
|
- name: HELMFILE_ENVIRONMENT
|
|
value: {{ . }}
|
|
- name: HELMFILE_FILE_PATH
|
|
value: plume.yaml.gotmpl
|
|
syncPolicy:
|
|
syncOptions:
|
|
- CreateNamespace=true
|
|
- ApplyOutOfSyncOnly=true
|
|
# automated:
|
|
# prune: true
|
|
# selfHeal: false
|
|
{{- end }}
|
|
{{- end }}
|