Skip to content

Commit a6ca959

Browse files
committed
Merge branch 'owls-121733-diagnose' into 'main'
Check for job FailureTarget condition See merge request weblogic-cloud/weblogic-kubernetes-operator!4972
2 parents aabb395 + 14fd46b commit a6ca959

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

operator/src/main/java/oracle/kubernetes/operator/watcher/JobWatcher.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ public static String getFailedReason(V1Job job) {
171171
V1JobStatus status = job.getStatus();
172172
if (status != null && status.getConditions() != null) {
173173
for (V1JobCondition cond : status.getConditions()) {
174-
if ("Failed".equals(cond.getType()) && "True".equals(cond.getStatus())) {
174+
if (("FailureTarget".equals(cond.getType()) || "Failed".equals(cond.getType()))
175+
&& "True".equals(cond.getStatus())) {
175176
return cond.getReason();
176177
}
177178
}

0 commit comments

Comments
 (0)