From d93fe4cc93530866354af0f9ce63144cae108cb4 Mon Sep 17 00:00:00 2001 From: Matheus Cruz Date: Mon, 15 Jan 2024 11:08:02 -0300 Subject: [PATCH] Remove leading and trailing space from k8s labels --- .../java/io/quarkus/kubernetes/deployment/ResourceNameUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/ResourceNameUtil.java b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/ResourceNameUtil.java index afd565d71b3ff..ef4c3b15d04d0 100644 --- a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/ResourceNameUtil.java +++ b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/ResourceNameUtil.java @@ -14,6 +14,6 @@ private ResourceNameUtil() { */ public static String getResourceName(PlatformConfiguration platformConfiguration, ApplicationInfoBuildItem applicationInfo) { - return platformConfiguration.getName().orElse(applicationInfo.getName()); + return platformConfiguration.getName().orElse(applicationInfo.getName()).trim(); } }