From dcbd64ddd8b49d3bab78375d22f7a5262f9dd6f4 Mon Sep 17 00:00:00 2001 From: Olivier Levitt Date: Mon, 15 Jul 2024 15:56:40 +0200 Subject: [PATCH] Fix service status retrieval (#457) --- .../onyxia/api/services/impl/HelmReleaseHealthResolver.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/onyxia-api/src/main/java/fr/insee/onyxia/api/services/impl/HelmReleaseHealthResolver.java b/onyxia-api/src/main/java/fr/insee/onyxia/api/services/impl/HelmReleaseHealthResolver.java index 50a2ab8b..5a91704c 100644 --- a/onyxia-api/src/main/java/fr/insee/onyxia/api/services/impl/HelmReleaseHealthResolver.java +++ b/onyxia-api/src/main/java/fr/insee/onyxia/api/services/impl/HelmReleaseHealthResolver.java @@ -55,6 +55,7 @@ private static List checkHealth( .get(); details.setDesired(deployment.getSpec().getReplicas()); details.setReady(deployment.getStatus().getReadyReplicas()); + break; case "StatefulSet": StatefulSet statefulset = kubernetesClient @@ -65,6 +66,7 @@ private static List checkHealth( .get(); details.setDesired(statefulset.getSpec().getReplicas()); details.setReady(statefulset.getStatus().getReadyReplicas()); + break; case "DaemonSet": DaemonSet daemonSet = kubernetesClient @@ -75,6 +77,7 @@ private static List checkHealth( .get(); details.setDesired(daemonSet.getStatus().getDesiredNumberScheduled()); details.setReady(daemonSet.getStatus().getNumberReady()); + break; default: continue; }