From df61e4f82026f447bf721a6c1254a587af729330 Mon Sep 17 00:00:00 2001 From: Morten Olsen Date: Wed, 3 Sep 2025 17:08:46 +0200 Subject: [PATCH] more-stuff --- charts/apps/values.yaml | 0 charts/root/Chart.yaml | 3 +++ charts/root/templates/apps.yaml | 32 ++++++++++++++++++++++++++++++++ charts/root/templates/root.yaml | 21 +++++++++++++++++++++ charts/root/values.yaml | 4 ++++ 5 files changed, 60 insertions(+) create mode 100644 charts/apps/values.yaml create mode 100644 charts/root/Chart.yaml create mode 100644 charts/root/templates/apps.yaml create mode 100644 charts/root/templates/root.yaml create mode 100644 charts/root/values.yaml diff --git a/charts/apps/values.yaml b/charts/apps/values.yaml new file mode 100644 index 0000000..e69de29 diff --git a/charts/root/Chart.yaml b/charts/root/Chart.yaml new file mode 100644 index 0000000..49eec5d --- /dev/null +++ b/charts/root/Chart.yaml @@ -0,0 +1,3 @@ +apiVersion: v2 +version: 1.0.0 +name: root diff --git a/charts/root/templates/apps.yaml b/charts/root/templates/apps.yaml new file mode 100644 index 0000000..70c4d81 --- /dev/null +++ b/charts/root/templates/apps.yaml @@ -0,0 +1,32 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: homelab-apps + namespace: '{{ .Values.env }}-argo' +spec: + generators: + - directory: + path: charts/apps + recurse: false + include: '.*' + filter: | + .is_dir == true and (.path | endswith(".disabled") | not) + template: + metadata: + name: '{{path.basename}}' + spec: + project: default + source: + repoURL: '{{ .Values.repo }}' + targetRevision: '{{ .Values.ref }}' + path: charts/apps/{{path.basename}} + helm: + values: | + global: {{ .Values.global | toYaml | nindent 14 }} + destination: + server: https://kubernetes.default.svc + namespace: '{{ .Values.globals.env }}' + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/charts/root/templates/root.yaml b/charts/root/templates/root.yaml new file mode 100644 index 0000000..524a69e --- /dev/null +++ b/charts/root/templates/root.yaml @@ -0,0 +1,21 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: homelab-root + namespace: '{{ .Values.globals.env }}-argo' +spec: + project: default + source: + repoURL: '{{ .Values.repo }}' + targetRevision: '{{ .Values.ref }}' + path: charts/root + helm: + valueFiles: + - values.yaml + destination: + server: https://kubernetes.default.svc + namespace: '{{ .Values.globals.env }}-argo' + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/charts/root/values.yaml b/charts/root/values.yaml new file mode 100644 index 0000000..f15f3d6 --- /dev/null +++ b/charts/root/values.yaml @@ -0,0 +1,4 @@ +globals: + env: prod +repo: https://github.com/morten-olsen/homelab-operator.git +ref: HEAD