4 changed files with 57 additions and 0 deletions
@ -0,0 +1,3 @@ |
|||
- op: replace |
|||
path: /metadata/name |
|||
value: demo-apptest |
@ -0,0 +1,24 @@ |
|||
apiVersion: argoproj.io/v1alpha1 |
|||
kind: ApplicationSet |
|||
metadata: |
|||
name: test-appset |
|||
namespace: argocd |
|||
spec: |
|||
generators: |
|||
- list: |
|||
elements: |
|||
- overlay: qa |
|||
gitRepo: git@github.com:evercast-chris/argocd-example-apps.git |
|||
appPath: overlays |
|||
appBranch: chore/overlays |
|||
cluster: test2 |
|||
url: https://kubernetes.default.svc |
|||
- overlay: stage |
|||
gitRepo: git@github.com:evercast-chris/argocd-example-apps.git |
|||
appPath: overlays |
|||
appBranch: chore/overlays |
|||
cluster: test1 |
|||
url: https://kubernetes.default.svc |
|||
template: |
|||
metadata: |
|||
name: 'test-{{cluster}}' |
@ -0,0 +1,9 @@ |
|||
apiVersion: argoproj.io/v1alpha1 |
|||
kind: Application |
|||
metadata: |
|||
name: applicationset |
|||
namespace: argocd |
|||
spec: |
|||
source: |
|||
repoURL: git@github.com:evercast-chris/argocd-example-apps.git |
|||
targetRevision: chore/overlays |
@ -0,0 +1,21 @@ |
|||
apiVersion: kustomize.config.k8s.io/v1beta1 |
|||
kind: Kustomization |
|||
|
|||
bases: |
|||
- ../base-apps |
|||
|
|||
namespace: argocd |
|||
|
|||
patchesStrategicMerge: |
|||
- appset.yaml |
|||
- application.yaml |
|||
|
|||
patchesJson6902: |
|||
- target: |
|||
group: argoproj.io |
|||
version: v1alpha1 |
|||
kind: ApplicationSet |
|||
name: test-appset |
|||
path: AppNamePatch.yaml |
|||
|
|||
|
Loading…
Reference in new issue