diff --git a/application.yaml b/application.yaml new file mode 100644 index 0000000..254f77c --- /dev/null +++ b/application.yaml @@ -0,0 +1,33 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: storage + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + + source: + repoURL: https://github.com/K3S-HOME/storage.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/cnpg/argocd.yaml b/cnpg/argocd.yaml index 7f7d7a4..4040263 100644 --- a/cnpg/argocd.yaml +++ b/cnpg/argocd.yaml @@ -14,7 +14,7 @@ spec: helm: valueFiles: - $values/cnpg/helm-values.yaml - - repoURL: https://github.com/K3S-HOME/cluster-infrastructure.git + - repoURL: https://github.com/K3S-HOME/storage.git targetRevision: main ref: values destination: diff --git a/kustomization.yaml b/kustomization.yaml new file mode 100644 index 0000000..74113b2 --- /dev/null +++ b/kustomization.yaml @@ -0,0 +1,16 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - application.yaml + # Storage systems + - longhorn/argocd.yaml + - minio/argocd.yaml + # PostgreSQL databases + - postgresql/argocd/postgresql.yaml + - postgresql-dev/argocd.yaml + # Database tools + - pgweb/argocd.yaml + # Operators + - cnpg/argocd.yaml + - velero/argocd.yaml diff --git a/longhorn/argocd.yaml b/longhorn/argocd.yaml index 9727206..088f820 100644 --- a/longhorn/argocd.yaml +++ b/longhorn/argocd.yaml @@ -14,10 +14,10 @@ spec: helm: valueFiles: - $values/longhorn/helm-values.yaml - - repoURL: https://github.com/K3S-HOME/databases.git + - repoURL: https://github.com/K3S-HOME/storage.git targetRevision: main ref: values - - repoURL: https://github.com/K3S-HOME/databases.git + - repoURL: https://github.com/K3S-HOME/storage.git targetRevision: main path: longhorn kustomize: {} diff --git a/minio/argocd.yaml b/minio/argocd.yaml index 40af229..def2715 100644 --- a/minio/argocd.yaml +++ b/minio/argocd.yaml @@ -14,10 +14,10 @@ spec: helm: valueFiles: - $values/minio/helm-values.yaml - - repoURL: https://github.com/K3S-HOME/databases.git + - repoURL: https://github.com/K3S-HOME/storage.git targetRevision: main ref: values - - repoURL: https://github.com/K3S-HOME/databases.git + - repoURL: https://github.com/K3S-HOME/storage.git targetRevision: main path: minio destination: diff --git a/pgweb/argocd.yaml b/pgweb/argocd.yaml index 2c42e7e..f794f2c 100644 --- a/pgweb/argocd.yaml +++ b/pgweb/argocd.yaml @@ -8,7 +8,7 @@ metadata: spec: project: default sources: - - repoURL: https://github.com/K3S-HOME/databases.git + - repoURL: https://github.com/K3S-HOME/storage.git targetRevision: main path: pgweb destination: diff --git a/postgresql-dev/argocd.yaml b/postgresql-dev/argocd.yaml index 502d1f1..2d5f021 100644 --- a/postgresql-dev/argocd.yaml +++ b/postgresql-dev/argocd.yaml @@ -14,10 +14,10 @@ spec: helm: valueFiles: - $values/postgresql-dev/helm-values.yaml - - repoURL: https://github.com/K3S-HOME/databases.git + - repoURL: https://github.com/K3S-HOME/storage.git targetRevision: main ref: values - - repoURL: https://github.com/K3S-HOME/databases.git + - repoURL: https://github.com/K3S-HOME/storage.git targetRevision: main path: postgresql-dev destination: diff --git a/postgresql/argocd/postgresql.yaml b/postgresql/argocd/postgresql.yaml index 2c17af2..a9f3037 100644 --- a/postgresql/argocd/postgresql.yaml +++ b/postgresql/argocd/postgresql.yaml @@ -9,7 +9,7 @@ spec: project: default source: - repoURL: https://github.com/K3S-HOME/databases.git + repoURL: https://github.com/K3S-HOME/storage.git targetRevision: main path: postgresql 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/velero/argocd.yaml b/velero/argocd.yaml index 13c53c4..3767d09 100644 --- a/velero/argocd.yaml +++ b/velero/argocd.yaml @@ -20,10 +20,10 @@ spec: helm: valueFiles: - $values/velero/helm-values.yaml - - repoURL: https://github.com/K3S-HOME/cluster-infrastructure.git + - repoURL: https://github.com/K3S-HOME/storage.git targetRevision: main ref: values - - repoURL: https://github.com/K3S-HOME/cluster-infrastructure.git + - repoURL: https://github.com/K3S-HOME/storage.git targetRevision: main path: velero kustomize: {}