Refactor PostgreSQL configuration and deployment to use new patterns.

This commit is contained in:
2025-06-07 16:10:11 -07:00
parent ed57228499
commit d5260307dc
6 changed files with 32 additions and 63 deletions

View File

@@ -8,30 +8,7 @@ labels:
managedBy: kustomize
partOf: wild-cloud
resources:
- config
- deployment.yaml
- namespace.yaml
- service.yaml
- pvc.yaml
replacements:
- source:
kind: ConfigMap
name: config
fieldPath: data.POSTGRES_STORAGE
targets:
- fieldPaths:
- spec.resources.requests.storage
select:
kind: PersistentVolumeClaim
name: postgresql-pvc
- source:
kind: ConfigMap
name: config
fieldPath: data.POSTGRES_IMAGE
targets:
- fieldPaths:
- spec.template.spec.containers.0.image
select:
kind: Deployment
name: postgres-deployment