From d7785622c182093fb844823d3205ec23902abe96 Mon Sep 17 00:00:00 2001 From: lea <lbruchon@takima.fr> Date: Wed, 2 Aug 2023 16:26:49 +0200 Subject: [PATCH] update values name --- templates/api/api-config.yaml | 2 +- templates/api/api-deployment.yaml | 4 ++-- templates/database/pg-credentials.yaml | 2 +- templates/database/pg-deployment.yaml | 4 ++-- templates/database/pg-service.yaml | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/api/api-config.yaml b/templates/api/api-config.yaml index 0497e18..2c15edc 100644 --- a/templates/api/api-config.yaml +++ b/templates/api/api-config.yaml @@ -3,5 +3,5 @@ kind: ConfigMap metadata: name: {{ .Values.name }}-api data: - endpoint: "pg-service:5432" + endpoint: "{{ .Values.name}}-pgservice:5432" database: {{ .Values.name}}-db diff --git a/templates/api/api-deployment.yaml b/templates/api/api-deployment.yaml index 1b851ae..cf61b55 100644 --- a/templates/api/api-deployment.yaml +++ b/templates/api/api-deployment.yaml @@ -40,12 +40,12 @@ spec: - name: POSTGRES_USER valueFrom: secretKeyRef: - name: pg-credentials + name: {{ .Values.name}}-credentials key: username - name: POSTGRES_PASSWORD valueFrom: secretKeyRef: - name: pg-credentials + name: {{ .Values.name}}-credentials key: password imagePullSecrets: - name : takima-school-registry \ No newline at end of file diff --git a/templates/database/pg-credentials.yaml b/templates/database/pg-credentials.yaml index 2800e43..255ef37 100644 --- a/templates/database/pg-credentials.yaml +++ b/templates/database/pg-credentials.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Secret metadata: - name: pg-credentials + name: {{ .Values.name}}-credentials type: Opaque data: username: YWRtaW4= diff --git a/templates/database/pg-deployment.yaml b/templates/database/pg-deployment.yaml index 14abdd3..9b215c2 100644 --- a/templates/database/pg-deployment.yaml +++ b/templates/database/pg-deployment.yaml @@ -40,12 +40,12 @@ spec: - name: POSTGRES_USER valueFrom: secretKeyRef: - name: pg-credentials + name: {{ .Values.name}}-credentials key: username - name: POSTGRES_PASSWORD valueFrom: secretKeyRef: - name: pg-credentials + name: {{ .Values.name}}-credentials key: password imagePullSecrets: - name : takima-school-registry \ No newline at end of file diff --git a/templates/database/pg-service.yaml b/templates/database/pg-service.yaml index e3d1abb..8718dc0 100644 --- a/templates/database/pg-service.yaml +++ b/templates/database/pg-service.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Service metadata: - name: pg-service + name: {{ .Values.name}}-pgservice spec: selector: app: pg -- GitLab