From ef3409884c3142a65f7d19756d0f61178123526e Mon Sep 17 00:00:00 2001 From: Mayne0213 Date: Sun, 4 Jan 2026 19:54:36 +0900 Subject: [PATCH] FEAT(repo): add config files for apps repo - Add application.yaml for ArgoCD app-of-apps - Add kustomization.yaml with all 8 application components - Add renovate.json for automated updates --- application.yaml | 33 +++++++++++++++++++++++++++++++++ kustomization.yaml | 13 +++++++++++++ renovate.json | 26 ++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 application.yaml create mode 100644 kustomization.yaml create mode 100644 renovate.json diff --git a/application.yaml b/application.yaml new file mode 100644 index 0000000..235e9b3 --- /dev/null +++ b/application.yaml @@ -0,0 +1,33 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: applications + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + + source: + repoURL: https://github.com/K3S-HOME/applications.git + targetRevision: main + path: . + + destination: + server: https://kubernetes.default.svc + namespace: argocd + + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + retry: + limit: 5 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m + + revisionHistoryLimit: 10 diff --git a/kustomization.yaml b/kustomization.yaml new file mode 100644 index 0000000..6d5c65e --- /dev/null +++ b/kustomization.yaml @@ -0,0 +1,13 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - application.yaml + - gitea/argocd.yaml + - homer/argocd.yaml + - docusaurus/argocd.yaml + - code-server/argocd.yaml + - umami/argocd.yaml + - headlamp/argocd.yaml + - immich/argocd.yaml + - crafty/argocd.yaml diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..da70c9a --- /dev/null +++ b/renovate.json @@ -0,0 +1,26 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ], + "customManagers": [ + { + "customType": "regex", + "managerFilePatterns": ["argocd\\.yaml$"], + "matchStrings": [ + "repoURL:\\s*(?ghcr\\.io/[^\\s]+)\\n\\s+chart:\\s*(?[^\\s]+)\\n\\s+targetRevision:\\s*(?[^\\s]+)" + ], + "datasourceTemplate": "helm", + "registryUrlTemplate": "oci://{{registryUrl}}" + } + ], + "kubernetes": { + "fileMatch": ["\\.yaml$"] + }, + "helmv3": { + "fileMatch": ["helm-values\\.yaml$"] + }, + "argocd": { + "fileMatch": ["argocd\\.yaml$"] + } +}