From d9df80bca337f2b6126b45daf9cc20ea6eed94f6 Mon Sep 17 00:00:00 2001 From: Mayne0213 Date: Mon, 29 Dec 2025 02:24:12 +0900 Subject: [PATCH] REFACTOR(postgresql): restructure pgweb - and pg-dev folder str... - Remove argocd/, helm-values/ subdirectories - Move files to parent directory with standardized names - Add namespace.yaml to both apps with Goldilocks labels - Preserve vault/ subdirectories (pgweb: 3 files, postgresql-dev: 1 file) - Update main kustomization.yaml to reference argocd.yaml files directly - Update postgresql-dev helm valueFiles path - Comment out argocd.yaml in each app's kustomization.yaml to prevent circular reference Applications restructured: - pgweb - postgresql-dev --- pgweb/{argocd/pgweb.yaml => argocd.yaml} | 0 pgweb/kustomization.yaml | 5 +++-- pgweb/namespace.yaml | 6 ++++++ postgresql-dev/{argocd/postgresql-dev.yaml => argocd.yaml} | 2 +- .../{helm-values/postgresql-dev.yaml => helm-values.yaml} | 0 postgresql-dev/kustomization.yaml | 5 +++-- postgresql-dev/namespace.yaml | 6 ++++++ 7 files changed, 19 insertions(+), 5 deletions(-) rename pgweb/{argocd/pgweb.yaml => argocd.yaml} (100%) create mode 100644 pgweb/namespace.yaml rename postgresql-dev/{argocd/postgresql-dev.yaml => argocd.yaml} (93%) rename postgresql-dev/{helm-values/postgresql-dev.yaml => helm-values.yaml} (100%) create mode 100644 postgresql-dev/namespace.yaml diff --git a/pgweb/argocd/pgweb.yaml b/pgweb/argocd.yaml similarity index 100% rename from pgweb/argocd/pgweb.yaml rename to pgweb/argocd.yaml diff --git a/pgweb/kustomization.yaml b/pgweb/kustomization.yaml index 02cd04c..1ab516c 100644 --- a/pgweb/kustomization.yaml +++ b/pgweb/kustomization.yaml @@ -2,8 +2,9 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - # ArgoCD Application 리소스는 infrastructure/kustomization.yaml에서 관리 - # - argocd/pgweb.yaml + # argocd.yaml은 수동으로 관리 (순환 참조 방지) + # - argocd.yaml + - namespace.yaml - deployment.yaml - vault/serviceaccount.yaml - vault/secretstore.yaml diff --git a/pgweb/namespace.yaml b/pgweb/namespace.yaml new file mode 100644 index 0000000..7a16c6a --- /dev/null +++ b/pgweb/namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: pgweb + labels: + goldilocks.fairwinds.com/enabled: "true" diff --git a/postgresql-dev/argocd/postgresql-dev.yaml b/postgresql-dev/argocd.yaml similarity index 93% rename from postgresql-dev/argocd/postgresql-dev.yaml rename to postgresql-dev/argocd.yaml index 9e7844c..0a1d6db 100644 --- a/postgresql-dev/argocd/postgresql-dev.yaml +++ b/postgresql-dev/argocd.yaml @@ -14,7 +14,7 @@ spec: targetRevision: 16.2.1 helm: valueFiles: - - $values/postgresql-dev/helm-values/postgresql-dev.yaml + - $values/postgresql-dev/helm-values.yaml - repoURL: https://gitea0213.kro.kr/bluemayne/databases.git targetRevision: main ref: values diff --git a/postgresql-dev/helm-values/postgresql-dev.yaml b/postgresql-dev/helm-values.yaml similarity index 100% rename from postgresql-dev/helm-values/postgresql-dev.yaml rename to postgresql-dev/helm-values.yaml diff --git a/postgresql-dev/kustomization.yaml b/postgresql-dev/kustomization.yaml index 6152871..7a3efce 100644 --- a/postgresql-dev/kustomization.yaml +++ b/postgresql-dev/kustomization.yaml @@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - # ArgoCD Application 리소스는 infrastructure/kustomization.yaml에서 관리 - # - argocd/postgresql-dev.yaml + # argocd.yaml은 수동으로 관리 (순환 참조 방지) + # - argocd.yaml + - namespace.yaml - vault/postgresql-password-dev.yaml diff --git a/postgresql-dev/namespace.yaml b/postgresql-dev/namespace.yaml new file mode 100644 index 0000000..2b34c50 --- /dev/null +++ b/postgresql-dev/namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: postgresql-dev + labels: + goldilocks.fairwinds.com/enabled: "true"