39 lines
849 B
YAML
39 lines
849 B
YAML
---
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: home-server-applications
|
|
namespace: argocd
|
|
spec:
|
|
|
|
goTemplate: true
|
|
goTemplateOptions:
|
|
- missingkey=true
|
|
|
|
generators:
|
|
- list:
|
|
elements:
|
|
- name: replicator
|
|
path: applications/10-replicator
|
|
namespace: home-server
|
|
wave: 1
|
|
|
|
template:
|
|
metadata:
|
|
name: "{{.name}}"
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: 'https://repobase.net/j/home-server.git'
|
|
targetRevision: main
|
|
path: "{{.path}}"
|
|
destination:
|
|
server: 'https://kubernetes.default.svc'
|
|
namespace: "{{.namespace}}"
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true
|
|
- SyncWave={{.wave}}
|