diff --git a/README.md b/README.md index 317bef2..f4f2474 100644 --- a/README.md +++ b/README.md @@ -16,3 +16,4 @@ to explore ArgoCD and GitOps! | [sock-shop](sock-shop/) | A microservices demo application (https://microservices-demo.github.io) | | [plugins](plugins/) | Applications 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) +| [applications](applications/) | An application composed of other applications | diff --git a/applications/Chart.yaml b/applications/Chart.yaml new file mode 100644 index 0000000..3510e2a --- /dev/null +++ b/applications/Chart.yaml @@ -0,0 +1,5 @@ +apiVersion: v1 +appVersion: "1.0" +description: Applications +name: applications +version: 0.1.0 diff --git a/applications/templates/guestbook.yaml b/applications/templates/guestbook.yaml new file mode 100644 index 0000000..1fe376b --- /dev/null +++ b/applications/templates/guestbook.yaml @@ -0,0 +1,17 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: guestbook + namespace: argocd +spec: + destination: + namespace: argocd + server: {{ .Values.spec.destination.server }} + project: default + source: + path: guestbook + repoURL: https://github.com/argoproj/argocd-example-apps + targetRevision: {{ .Values.spec.source.targetRevision }} + syncPolicy: + automated: + prune: true diff --git a/applications/templates/helm-dependency.yaml b/applications/templates/helm-dependency.yaml new file mode 100644 index 0000000..9c1e4a8 --- /dev/null +++ b/applications/templates/helm-dependency.yaml @@ -0,0 +1,17 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: helm-dependency + namespace: argocd +spec: + destination: + namespace: argocd + server: {{ .Values.spec.destination.server }} + project: default + source: + path: helm-dependency + repoURL: https://github.com/argoproj/argocd-example-apps + targetRevision: {{ .Values.spec.source.targetRevision }} + syncPolicy: + automated: + prune: true diff --git a/applications/templates/helm-guestbook.yaml b/applications/templates/helm-guestbook.yaml new file mode 100644 index 0000000..58b99f0 --- /dev/null +++ b/applications/templates/helm-guestbook.yaml @@ -0,0 +1,17 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: helm-guestbook + namespace: argocd +spec: + destination: + namespace: argocd + server: {{ .Values.spec.destination.server }} + project: default + source: + path: helm-guestbook + repoURL: https://github.com/argoproj/argocd-example-apps + targetRevision: {{ .Values.spec.source.targetRevision }} + syncPolicy: + automated: + prune: true diff --git a/applications/templates/kustomize-guestbook.yaml b/applications/templates/kustomize-guestbook.yaml new file mode 100644 index 0000000..9c52bc1 --- /dev/null +++ b/applications/templates/kustomize-guestbook.yaml @@ -0,0 +1,17 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: kustomize-guestbook + namespace: argocd +spec: + destination: + namespace: argocd + server: {{ .Values.spec.destination.server }} + project: default + source: + path: kustomize-guestbook + repoURL: https://github.com/argoproj/argocd-example-apps + targetRevision: {{ .Values.spec.source.targetRevision }} + syncPolicy: + automated: + prune: true diff --git a/applications/values.yaml b/applications/values.yaml new file mode 100644 index 0000000..9ad29b7 --- /dev/null +++ b/applications/values.yaml @@ -0,0 +1,5 @@ +spec: + destination: + server: https://kubernetes.default.svc + source: + targretRevision: HEAD \ No newline at end of file