From 2e4cccbc14d1d652398ddce8daece92c03d04441 Mon Sep 17 00:00:00 2001
From: Nico Poegel <nico_benjamin.poegel@student.reutlingen-university.de>
Date: Tue, 14 Feb 2023 13:38:34 +0100
Subject: [PATCH] renamed myaktion-db-service

---
 helm-msa/templates/deployment/myaktion-deployment.yaml      | 6 +++---
 ...on-postgres-db-service.yaml => myaktion-db-service.yaml} | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
 rename helm-msa/templates/service/{myaktion-postgres-db-service.yaml => myaktion-db-service.yaml} (65%)

diff --git a/helm-msa/templates/deployment/myaktion-deployment.yaml b/helm-msa/templates/deployment/myaktion-deployment.yaml
index 6d1bf3b..420aac9 100644
--- a/helm-msa/templates/deployment/myaktion-deployment.yaml
+++ b/helm-msa/templates/deployment/myaktion-deployment.yaml
@@ -22,7 +22,7 @@ spec:
         - containerPort: 8080
         env:
         - name: SPRING_DATASOURCE_URL
-          value: "jdbc:postgresql://myaktion-postgres-db-service/postgres"
+          value: "jdbc:postgresql://myaktion-db-service/postgres"
         - name: URL_MYAKTION_MONITOR
           value: "http://myaktion-monitor-service/donations"
         - name: SPRING_REDIS_HOST
@@ -30,10 +30,10 @@ spec:
         - name: SPRING_DATASOURCE_USERNAME
           valueFrom:
             secretKeyRef:
-              name: user-db-secret
+              name: myaktion-db-secret
               key: DATABASE_USER
         - name: SPRING_DATASOURCE_PASSWORD
           valueFrom:
             secretKeyRef:
-              name: user-db-secret
+              name: myaktion-db-secret
               key: DATABASE_PASSWORD
diff --git a/helm-msa/templates/service/myaktion-postgres-db-service.yaml b/helm-msa/templates/service/myaktion-db-service.yaml
similarity index 65%
rename from helm-msa/templates/service/myaktion-postgres-db-service.yaml
rename to helm-msa/templates/service/myaktion-db-service.yaml
index 8ee5c56..d9ca1e6 100644
--- a/helm-msa/templates/service/myaktion-postgres-db-service.yaml
+++ b/helm-msa/templates/service/myaktion-db-service.yaml
@@ -1,10 +1,10 @@
 apiVersion: v1
 kind: Service
 metadata:
-  name: myaktion-postgres-db-service
+  name: myaktion-db-service
 spec:
   selector:
-    app: myaktion-postgres-db
+    app: myaktion-db
   ports:
     - protocol: TCP
       port: 5432
-- 
GitLab