diff --git a/application.yaml b/application.yaml new file mode 100644 index 0000000..516fa57 --- /dev/null +++ b/application.yaml @@ -0,0 +1,33 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: platform + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + + source: + repoURL: https://github.com/K3S-HOME/platform.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/cert-manager/argocd.yaml b/cert-manager/argocd.yaml index 272ad0b..7b01bdd 100644 --- a/cert-manager/argocd.yaml +++ b/cert-manager/argocd.yaml @@ -14,10 +14,10 @@ spec: helm: valueFiles: - $values/cert-manager/helm-values.yaml - - repoURL: https://github.com/K3S-HOME/cluster-infrastructure.git + - repoURL: https://github.com/K3S-HOME/platform.git targetRevision: main ref: values - - repoURL: https://github.com/K3S-HOME/cluster-infrastructure.git + - repoURL: https://github.com/K3S-HOME/platform.git targetRevision: main path: cert-manager destination: diff --git a/kustomization.yaml b/kustomization.yaml new file mode 100644 index 0000000..42c2986 --- /dev/null +++ b/kustomization.yaml @@ -0,0 +1,11 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + # App of Apps Application + - application.yaml + - cert-manager/argocd.yaml + - traefik/argocd.yaml + + # ArgoCD configuration (no Application, just configuration) + - argocd 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$"] + } +} diff --git a/traefik/argocd.yaml b/traefik/argocd.yaml index 055442d..777d51a 100644 --- a/traefik/argocd.yaml +++ b/traefik/argocd.yaml @@ -8,7 +8,7 @@ metadata: spec: project: default source: - repoURL: https://github.com/K3S-HOME/cluster-infrastructure.git + repoURL: https://github.com/K3S-HOME/platform.git targetRevision: main path: traefik destination: