argo1/argo1/templates/pgo.yaml
2023-04-27 20:21:01 -05:00

32 lines
849 B
YAML

# {{ if (index .Values "pgo").enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ .Release.Name }}-pgo
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: "{{ .Values.bootstrap.source.repoURL }}"
targetRevision: "{{ .Values.bootstrap.source.targetRevision }}"
path: {{ (index .Values "pgo").path | default "pgo" | quote }}
destination:
server: "https://kubernetes.default.svc"
namespace: {{ (index .Values "pgo").namespace | default "postgres-operator" | quote }}
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
retry:
limit: 10
backoff:
duration: 5s
factor: 2
maxDuration: 3m0s
# {{- end }}