Files
homelab/clusters/overlays/local.home/components/tenants/appset.yaml
rblundon fe564d7227 Squashed 'cluster-config/' content from commit 654f2390
git-subtree-dir: cluster-config
git-subtree-split: 654f23903bd1f9a27a4810bd289d165b6cfdbb0c
2025-03-30 15:46:16 -05:00

30 lines
712 B
YAML

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