From c5f96ef2c8550068c88ee762061b01140874a2f5 Mon Sep 17 00:00:00 2001
From: "peer.wipprecht" <peer.wipprecht@stud.h-da.de>
Date: Wed, 26 Mar 2025 14:47:09 +0100
Subject: [PATCH] Fix configmap naming & add missing deployment configuration

---
 modules/default.nix       | 5 +++--
 modules/myapp/default.nix | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/default.nix b/modules/default.nix
index b240f94..c7c1d6b 100644
--- a/modules/default.nix
+++ b/modules/default.nix
@@ -22,7 +22,7 @@ in {
           inherit readinessProbe;
         };
       };
-      configMaps.myapp.data = {
+      configMaps.app-config.data = {
         "LOG_LEVEL" = "info";
         "FEATURE_FLAGS" = "new-ui=true,beta-features=false";
         "CACHE_SIZE" = "1024m";
@@ -33,9 +33,10 @@ in {
         replicas = 5;
         template.spec.containers.whoami = {
           imagePullPolicy = "IfNotPresent";
+          inherit readinessProbe;
         };
       };
-      configMaps.myapp.data = {
+      configMaps.app-config.data = {
         "LOG_LEVEL" = "warn";
         "FEATURE_FLAGS" = "new-ui=false,beta-features=false";
         "CACHE_SIZE" = "4096m";
diff --git a/modules/myapp/default.nix b/modules/myapp/default.nix
index cb3eb0a..caec48a 100644
--- a/modules/myapp/default.nix
+++ b/modules/myapp/default.nix
@@ -57,7 +57,7 @@ in {
               };
             };
 
-            configMaps.myapp.data = {
+            configMaps.app-config.data = {
               "WHOAMI_PORT_NUMBER" = "80";
               "LOG_LEVEL" = "debug";
               "FEATURE_FLAGS" = "new-ui=true,beta-features=true";
-- 
GitLab