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}