32 lines
823 B
YAML
32 lines
823 B
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: bootstrap
|
|
namespace: argocd
|
|
spec:
|
|
goTemplate: true
|
|
syncPolicy:
|
|
preserveResourcesOnDeletion: false # to be able to cleanup
|
|
generators:
|
|
- clusters:
|
|
selector:
|
|
matchLabels:
|
|
fleet_member: control-plane
|
|
template:
|
|
metadata:
|
|
name: bootstrap
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: '{{.metadata.annotations.fleet_repo_url}}'
|
|
path: '{{.metadata.annotations.fleet_repo_basepath}}{{.metadata.annotations.fleet_repo_path}}'
|
|
targetRevision: '{{.metadata.annotations.fleet_repo_revision}}'
|
|
directory:
|
|
recurse: false
|
|
exclude: exclude/*
|
|
destination:
|
|
namespace: 'argocd'
|
|
name: '{{.name}}'
|
|
syncPolicy:
|
|
automated: {}
|