REFACTOR(storage): storage repo structure

- Add application.yaml for ArgoCD app-of-apps
- Add kustomization.yaml with storage components
- Add renovate.json for automated updates
- Update all component argocd.yaml repoURLs to storage repo

Components: longhorn, minio, postgresql, postgresql-dev, pgweb, cnpg,
velero
This commit is contained in:
2026-01-04 19:59:32 +09:00
parent e1a10ff954
commit 44f773b827
10 changed files with 86 additions and 11 deletions

33
application.yaml Normal file
View File

@@ -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

View File

@@ -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:

16
kustomization.yaml Normal file
View File

@@ -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

View File

@@ -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: {}

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -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

26
renovate.json Normal file
View File

@@ -0,0 +1,26 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"customManagers": [
{
"customType": "regex",
"managerFilePatterns": ["argocd\\.yaml$"],
"matchStrings": [
"repoURL:\\s*(?<registryUrl>ghcr\\.io/[^\\s]+)\\n\\s+chart:\\s*(?<depName>[^\\s]+)\\n\\s+targetRevision:\\s*(?<currentValue>[^\\s]+)"
],
"datasourceTemplate": "helm",
"registryUrlTemplate": "oci://{{registryUrl}}"
}
],
"kubernetes": {
"fileMatch": ["\\.yaml$"]
},
"helmv3": {
"fileMatch": ["helm-values\\.yaml$"]
},
"argocd": {
"fileMatch": ["argocd\\.yaml$"]
}
}

View File

@@ -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: {}