From fb1867872f75f1abcca030625921356648cdf941 Mon Sep 17 00:00:00 2001 From: hotdawg Date: Fri, 30 Oct 2020 17:30:08 -0400 Subject: [PATCH 1/4] add parent-app example --- README.md | 1 + parent-app/parent-app.yaml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 parent-app/parent-app.yaml diff --git a/README.md b/README.md index 9b0ec34..acaf803 100644 --- a/README.md +++ b/README.md @@ -19,3 +19,4 @@ to explore ArgoCD and GitOps! | [plugins](plugins/) | Apps which demonstrate config management plugins usage | | [blue-green](blue-green/) | Demonstrates how to implement blue-green deployment using [Argo Rollouts](https://github.com/argoproj/argo-rollouts) | [apps](apps/) | An app composed of other apps | +| [parent-app](parent-app/) | Demonstrates a parent app that consist only of other apps | diff --git a/parent-app/parent-app.yaml b/parent-app/parent-app.yaml new file mode 100644 index 0000000..67a0519 --- /dev/null +++ b/parent-app/parent-app.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: applications + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + destination: + namespace: argocd + server: https://kubernetes.default.svc + project: default + source: + path: apps + repoURL: https://github.com/argoproj/argocd-example-apps + targetRevision: HEAD + syncPolicy: + automated: + selfHeal: true + prune: true From 52b2e6c3ec8f6cce41f893e27b65ef511fd2ae91 Mon Sep 17 00:00:00 2001 From: hotdawg Date: Fri, 30 Oct 2020 17:54:25 -0400 Subject: [PATCH 2/4] Adds a parent app that consist only of other apps --- apps/templates/helm-guestbook.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/templates/helm-guestbook.yaml b/apps/templates/helm-guestbook.yaml index e1e5a8b..23a786a 100644 --- a/apps/templates/helm-guestbook.yaml +++ b/apps/templates/helm-guestbook.yaml @@ -14,3 +14,5 @@ spec: path: helm-guestbook repoURL: {{ .Values.spec.source.repoURL }} targetRevision: {{ .Values.spec.source.targetRevision }} + + \ No newline at end of file From 089a69f3ad407044f0d91be781f192c18b41b771 Mon Sep 17 00:00:00 2001 From: hotdawg Date: Fri, 30 Oct 2020 17:56:59 -0400 Subject: [PATCH 3/4] Add parent app that consist only of other apps --- apps/templates/helm-guestbook.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/templates/helm-guestbook.yaml b/apps/templates/helm-guestbook.yaml index 23a786a..63ed8f9 100644 --- a/apps/templates/helm-guestbook.yaml +++ b/apps/templates/helm-guestbook.yaml @@ -13,6 +13,4 @@ spec: source: path: helm-guestbook repoURL: {{ .Values.spec.source.repoURL }} - targetRevision: {{ .Values.spec.source.targetRevision }} - - \ No newline at end of file + targetRevision: {{ .Values.spec.source.targetRevision }} \ No newline at end of file From e25d57c4aade74305b3d531cad3d6e0598cb4c61 Mon Sep 17 00:00:00 2001 From: hotdawg Date: Fri, 30 Oct 2020 17:57:56 -0400 Subject: [PATCH 4/4] Add parent app that consist only of other apps --- apps/templates/helm-guestbook.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/templates/helm-guestbook.yaml b/apps/templates/helm-guestbook.yaml index 63ed8f9..e1e5a8b 100644 --- a/apps/templates/helm-guestbook.yaml +++ b/apps/templates/helm-guestbook.yaml @@ -13,4 +13,4 @@ spec: source: path: helm-guestbook repoURL: {{ .Values.spec.source.repoURL }} - targetRevision: {{ .Values.spec.source.targetRevision }} \ No newline at end of file + targetRevision: {{ .Values.spec.source.targetRevision }}