mirror of
https://github.com/morten-olsen/homelab-apps.git
synced 2026-02-08 01:36:28 +01:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: shared
|
|
namespace: argocd
|
|
spec:
|
|
generators:
|
|
- git:
|
|
repoURL: {{ .Values.repoURL }}
|
|
revision: {{ .Values.targetRevision }}
|
|
directories:
|
|
- path: {{ .Values.path }}/*
|
|
- path: {{ .Values.path }}/*{{ .Values.exclude }}
|
|
exclude: true
|
|
template:
|
|
metadata:
|
|
name: '{{`{{path.basename}}`}}'
|
|
spec:
|
|
project: {{ .Values.project }}
|
|
source:
|
|
repoURL: {{ .Values.repoURL }}
|
|
targetRevision: {{ .Values.targetRevision }}
|
|
path: '{{`{{path}}`}}'
|
|
helm:
|
|
valueFiles:
|
|
- values.yaml
|
|
values: |
|
|
globals:
|
|
timezone: {{ .Values.globals.timezone }}
|
|
storageClass: {{ .Values.globals.storageClass }}
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: "{{ .Values.project }}"
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true
|