diff --git a/base-apps/applicationset.yaml b/base-apps/applicationset.yaml new file mode 100644 index 0000000..ca6144f --- /dev/null +++ b/base-apps/applicationset.yaml @@ -0,0 +1,26 @@ + +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: test-appset + namespace: argocd +spec: + generators: + - list: + elements: + # v0.2.0+ form - does not require cluster/URL keys (but are still supported) + - overlay: qa + gitRepo: git@github.com:evercast-chris/argocd-example-apps.git + appPath: overlays + appBranch: master + cluster: test2 + url: https://kubernetes.default.svc + - overlay: stage + gitRepo: git@github.com:evercast-chris/argocd-example-apps.git + appPath: overlays + appBranch: master + cluster: test1 + url: https://kubernetes.default.svc + template: + metadata: + name: 'demo-{{cluster}}' \ No newline at end of file diff --git a/base-apps/appset.yaml b/base-apps/appset.yaml new file mode 100644 index 0000000..63f64d0 --- /dev/null +++ b/base-apps/appset.yaml @@ -0,0 +1,17 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: applicationset + namespace: argocd +spec: + project: default + syncPolicy: + automated: + prune: true + selfHeal: true + source: + repoURL: git@github.com:evercast-chris/argocd-example-apps.git + targetRevision: master + path: applicationsets + destination: + server: https://kubernetes.default.svc \ No newline at end of file diff --git a/base-apps/kustomization.yaml b/base-apps/kustomization.yaml new file mode 100644 index 0000000..86b07d2 --- /dev/null +++ b/base-apps/kustomization.yaml @@ -0,0 +1,8 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: argocd + +resources: +- appset.yaml +- applicationset.yaml