Squashed 'cluster-config/' content from commit 654f2390
git-subtree-dir: cluster-config git-subtree-split: 654f23903bd1f9a27a4810bd289d165b6cfdbb0c
This commit is contained in:
29
clusters/overlays/local.home/components/tenants/appset.yaml
Normal file
29
clusters/overlays/local.home/components/tenants/appset.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: tenants
|
||||
namespace: openshift-gitops
|
||||
spec:
|
||||
generators:
|
||||
- git:
|
||||
directories:
|
||||
- path: tenants/**/base
|
||||
repoURL: https://github.com/gnunn-gitops/cluster-config
|
||||
revision: main
|
||||
goTemplate: true
|
||||
syncPolicy:
|
||||
preserveResourcesOnDeletion: true
|
||||
template:
|
||||
metadata:
|
||||
name: tenant-{{ index .path.segments 1 | normalize }}
|
||||
spec:
|
||||
destination:
|
||||
name: in-cluster
|
||||
namespace: default
|
||||
project: cluster-config
|
||||
source:
|
||||
path: '{{ .path.path }}'
|
||||
repoURL: https://github.com/gnunn-gitops/cluster-config
|
||||
syncPolicy:
|
||||
automated:
|
||||
selfHeal: true
|
||||
Reference in New Issue
Block a user