From 7345be46a06e687f26c4d50dd00427c635d7efc6 Mon Sep 17 00:00:00 2001 From: James Andariese Date: Thu, 27 Apr 2023 20:09:43 -0500 Subject: [PATCH] add pgo --- argo1/templates/pgo.yaml | 31 +++++++++++++++++++++++++++++++ argo1/values.yaml | 1 + 2 files changed, 32 insertions(+) create mode 100644 argo1/templates/pgo.yaml diff --git a/argo1/templates/pgo.yaml b/argo1/templates/pgo.yaml new file mode 100644 index 0000000..63d86b5 --- /dev/null +++ b/argo1/templates/pgo.yaml @@ -0,0 +1,31 @@ +# {{ 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: + path: {{ (index .Values "pgo").path | default "." | quote }} + repoURL: {{ (index .Values "pgo").repoURL | quote }} + targetRevision: {{ (index .Values "pgo").targetRevision | default "main" | quote}} + kustomize: {} + destination: + server: "https://kubernetes.default.svc" + namespace: argocd + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + retry: + limit: 10 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m0s +# {{- end }} diff --git a/argo1/values.yaml b/argo1/values.yaml index 6a43afc..fb26782 100644 --- a/argo1/values.yaml +++ b/argo1/values.yaml @@ -112,6 +112,7 @@ openebs: enabled: false external-secrets: {enabled: true} +pgo: {enabled: true} secrets: {enabled: true} sealed-secrets: {enabled: true} trust-manager: {enabled: true}