From d9209e89ef368caa57ec56cd3c4293b9dd349e2b Mon Sep 17 00:00:00 2001 From: Nicolas Date: Mon, 22 Sep 2025 17:31:11 +0800 Subject: [PATCH] fix authentication --- .../templates/authentication/opentelemetry.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml index 5f49788d..db041d6a 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml @@ -79,10 +79,9 @@ spec: - context: log statements: - set(resource.attributes["service_name"], "authentication") + - set(resource.attributes["environment"], "alpha") - set(resource.attributes["environment"], - if(resource.attributes["k8s.namespace.name"] == "freeleaps-prod", "prod", - if(resource.attributes["k8s.namespace.name"] == "freeleaps-alpha", "alpha", - resource.attributes["k8s.namespace.name"]))) + if(resource.attributes["k8s.namespace.name"] == "freeleaps-prod", "prod", resource.attributes["environment"])) - set(resource.attributes["pod_ip"], resource.attributes["k8s.pod.ip"]) - set(resource.attributes["pod_name"], resource.attributes["k8s.pod.name"]) - set(resource.attributes["kubernetes_node_name"], resource.attributes["k8s.node.name"])