clean(structure): using MYAPPLICATION instead of app

This commit is contained in:
2023-06-15 11:21:56 +02:00
parent 1508d44120
commit 34df7a153a
17 changed files with 53 additions and 50 deletions

View File

@ -8,24 +8,24 @@ configurations:
- ./configurations/cnpg-cluster.yaml
resources:
- ./resources/app-cnpg-cluster.yaml
- ./resources/MYAPPLICATION-cnpg-cluster.yaml
secretgenerator:
- name: app-postgres-admin
- name: MYAPPLICATION-postgres-admin
type: secret
literals:
- username=postgres
- password=notsosecret
- name: app-postgres-user
- name: MYAPPLICATION-postgres-user
type: Secret
literals:
- username=app
- username=MYAPPLICATION
- password=NotSoSecretButThisIsBad
vars:
- name: APP_DATABASE_SERVICE_NAME
- name: MYAPPLICATION_DATABASE_SERVICE_NAME
objref:
name: app-postgres
name: MYAPPLICATION-postgres
kind: Cluster
apiVersion: postgresql.cnpg.io/v1
fieldref:

View File

@ -1,17 +1,17 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: app-postgres
name: MYAPPLICATION-postgres
spec:
instances: 3
primaryUpdateStrategy: unsupervised
superuserSecret:
name: app-postgres-admin
name: MYAPPLICATION-postgres-admin
bootstrap:
initdb:
database: app
owner: app
database: MYAPPLICATION
owner: MYAPPLICATION
secret:
name: app-postgres-user
name: MYAPPLICATION-postgres-user
storage:
size: 20Gi