From 5823c752ab0f661bce4a6dde9c5491cd318f5774 Mon Sep 17 00:00:00 2001
From: Mathieu Benoit <mathieu-benoit@hotmail.fr>
Date: Mon, 30 Dec 2024 13:40:36 -0500
Subject: [PATCH] Update Program.cs

---
 app/Program.cs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app/Program.cs b/app/Program.cs
index 52f973f..707eadc 100644
--- a/app/Program.cs
+++ b/app/Program.cs
@@ -9,6 +9,8 @@
 var message = builder.Configuration["MESSAGE"] ?? "Hello, World! (from code)";
 var podName = builder.Configuration["POD_NAME"];
 var namespaceName = builder.Configuration["NAMESPACE_NAME"];
+message = string.IsNullOrEmpty(podName) || string.IsNullOrEmpty(namespaceName) ? message : $"{message} - from {podName} / {namespaceName}";
+var platform = Environment.OSVersion.Platform;
 
-app.MapGet("/", () => string.IsNullOrEmpty(podName) || string.IsNullOrEmpty(namespaceName) ? message : $"{message} - from {podName} / {namespaceName}.");
+app.MapGet("/", () => $"{message} on {platform}.");
 app.Run();