Skip to content

Commit

Permalink
fix: amend service setup failure condition (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii-Klimov authored Jan 14, 2025
1 parent c7eeb4e commit dccdfa7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/epam/aidial/util/KubernetesUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ public String extractServiceUrl(V1Service service) {
}

if ("False".equals(condition.getStatus())) {
throw new IllegalStateException("Failed to setup service %s: %s".formatted(name, condition.getMessage()));
// Cannot throw an exception here because in some cases it recovers,
// and it's not clear how to differentiate those.
log.warn("Failed to setup service %s: %s".formatted(name, condition.getMessage()));
return null;
}
}

Expand Down

0 comments on commit dccdfa7

Please sign in to comment.