From 60df13c813b06651435496382e8f5b354f00cd11 Mon Sep 17 00:00:00 2001 From: Christian Zheng <czheng@takima.fr> Date: Wed, 2 Aug 2023 16:10:40 +0200 Subject: [PATCH] update names --- templates/pg-credentials.yaml | 12 ------------ templates/pg-operator.yaml | 5 +++-- values.yaml | 2 +- 3 files changed, 4 insertions(+), 15 deletions(-) delete mode 100644 templates/pg-credentials.yaml diff --git a/templates/pg-credentials.yaml b/templates/pg-credentials.yaml deleted file mode 100644 index 210f92c..0000000 --- a/templates/pg-credentials.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: hydra.acid-hydra-database.credentials.postgresql.acid.zalan.do - labels: - application: spilo - cluster-name: acid-hydra-database - team: acid -type: Opaque -data: - username: {{ .Values.db.username | b64enc }} - password: {{ .Values.db.password | b64enc }} diff --git a/templates/pg-operator.yaml b/templates/pg-operator.yaml index 89b7224..1326b19 100644 --- a/templates/pg-operator.yaml +++ b/templates/pg-operator.yaml @@ -2,7 +2,6 @@ apiVersion: "acid.zalan.do/v1" kind: postgresql metadata: annotations: - checksum/config: {{ include (print $.Template.BasePath "/pg-credentials.yaml") . | sha256sum }} name: {{ .Values.db.prefix }}-postgresql spec: teamId: {{ .Values.db.prefix }} # le team id doit matcher le préfixe dans le metadata.name, ici formation @@ -10,7 +9,9 @@ spec: size: 1Gi numberOfInstances: 2 users: - hydra: [] + hydra: + - superuser + - createdb databases: hydra: hydra postgresql: diff --git a/values.yaml b/values.yaml index 7a07801..d529bec 100644 --- a/values.yaml +++ b/values.yaml @@ -26,7 +26,7 @@ front: host: www.czheng.takima.school db: - dbName: cdb-db + dbName: hydra username: username password: password prefix: cdb -- GitLab