Skip to content

Commit 7c11ad1

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>
1 parent 0bde4f7 commit 7c11ad1

1 file changed

Lines changed: 1 addition & 1 deletion

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ public void watchJobs(
11861186

11871187
private JobStatusCondition getJobCondition(V1Job job) {
11881188
V1JobStatus jobStatus = job.getStatus();
1189-
if (jobStatus.getConditions() != null) {
1189+
if (jobStatus!= null && jobStatus.getConditions() != null) {
11901190
if (jobStatus.getConditions().size() > 1) {
11911191
log.warn("More than one Job conditions found. Job: {}", job);
11921192
}

0 commit comments

Comments
 (0)