Skip to content

Commit 0395086

Browse files
author
ddakov
committed
control-service: fix data jobs builds
Change the way the success of a data job build is evaluated since newer version of K8s notify earlier with different job conditions. Signed-off-by: Dako Dakov <ddakov@vmware.com>
2 parents 7c11ad1 + 9ea019a commit 0395086

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

  • projects/control-service/projects/pipelines_control_service/src/main/java/com/vmware/taurus/service

projects/control-service/projects/pipelines_control_service/src/main/java/com/vmware/taurus/service/KubernetesService.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,15 +1196,15 @@ private JobStatusCondition getJobCondition(V1Job job) {
11961196
c.getType(),
11971197
c.getReason(),
11981198
c.getMessage());
1199-
if (c.getType().equals("Complete") || c.getType().equals("SuccessCriteriaMet")){
1199+
if (c.getType().equals("Complete") || c.getType().equals("SuccessCriteriaMet")) {
12001200
return new JobStatusCondition(
1201-
c.getType().equals("Complete") || c.getType().equals("SuccessCriteriaMet"),
1202-
c.getType(),
1203-
c.getReason(),
1204-
c.getMessage(),
1205-
c.getLastTransitionTime() != null
1206-
? c.getLastTransitionTime().toInstant().toEpochMilli()
1207-
: 0);
1201+
c.getType().equals("Complete") || c.getType().equals("SuccessCriteriaMet"),
1202+
c.getType(),
1203+
c.getReason(),
1204+
c.getMessage(),
1205+
c.getLastTransitionTime() != null
1206+
? c.getLastTransitionTime().toInstant().toEpochMilli()
1207+
: 0);
12081208
}
12091209
}
12101210
}

0 commit comments

Comments
 (0)