Files
Cluster/argocd/applicationset.yaml
T

44 lines
1.1 KiB
YAML

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: cluster
namespace: argocd
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- git:
repoURL: https://gitea.tap-tap.win/TapTap/Cluster.git
revision: HEAD
directories:
- path: "argocd"
- path: "external-secrets"
- path: "hashicorp-vault"
- path: "jellyfin"
- path: "nginx"
- path: "plex"
- path: "cert-manager"
- path: "cloudflare-ddns"
- path: "gitea"
- path: "homeassistant"
template:
metadata:
name: "{{ index .path.segments 0 }}"
namespace: default
spec:
project: default
source:
repoURL: https://gitea.tap-tap.win/TapTap/Cluster.git
targetRevision: HEAD
path: "{{ .path.path }}"
destination:
server: https://kubernetes.default.svc
namespace: "{{ index .path.segments 0 }}"
syncPolicy:
automated:
enabled: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true