From 9606b5137b47e67c92eb3091b88d1373bb219712 Mon Sep 17 00:00:00 2001 From: Ioannis Canellos Date: Tue, 12 Dec 2023 20:42:01 +0200 Subject: [PATCH] fix: ServiceMonitor generation (targetPort type and dekorate bump) --- bom/application/pom.xml | 2 +- .../deployment/AddServiceMonitorResourceDecorator.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 2710161d04a5d..eadb7d4dbef8e 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -164,7 +164,7 @@ 1.7.3 0.27.0 1.6.2 - 4.1.0 + 4.1.1 3.2.0 4.2.0 3.0.2.Final diff --git a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/AddServiceMonitorResourceDecorator.java b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/AddServiceMonitorResourceDecorator.java index bc75666b48f15..425377c822541 100644 --- a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/AddServiceMonitorResourceDecorator.java +++ b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/AddServiceMonitorResourceDecorator.java @@ -36,7 +36,7 @@ public void visit(KubernetesListBuilder list) { .endSelector() .addNewEndpoint() .withScheme(scheme) - .withNewTargetPort(targetPort) + .withNewTargetPort(Integer.parseInt(targetPort)) //This needs to be passed as int .withPath(path) .withInterval(interval + "s") .withHonorLabels(honorLabels)