Class KubernetesJobStatus
- java.lang.Object
-
- com.netflix.spinnaker.clouddriver.kubernetes.model.KubernetesJobStatus
-
- All Implemented Interfaces:
com.netflix.spinnaker.clouddriver.model.JobStatus
public class KubernetesJobStatus extends java.lang.Object implements com.netflix.spinnaker.clouddriver.model.JobStatus
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKubernetesJobStatus.ContainerExecutionDetailsthis class captures details about a container execution.static classKubernetesJobStatus.PodStatus
-
Constructor Summary
Constructors Constructor Description KubernetesJobStatus(io.kubernetes.client.openapi.models.V1Job job, java.lang.String account)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcaptureFailureDetails()This function loops through all the pods in the job and finds the first container in a pod that has either terminated with a non-zero exit code or is stuck in waiting stage.java.util.Map<java.lang.String,java.lang.String>getCompletionDetails()com.netflix.spinnaker.clouddriver.model.JobStategetJobState()
-
-
-
Method Detail
-
getCompletionDetails
public java.util.Map<java.lang.String,java.lang.String> getCompletionDetails()
- Specified by:
getCompletionDetailsin interfacecom.netflix.spinnaker.clouddriver.model.JobStatus
-
getJobState
public com.netflix.spinnaker.clouddriver.model.JobState getJobState()
- Specified by:
getJobStatein interfacecom.netflix.spinnaker.clouddriver.model.JobStatus
-
captureFailureDetails
public void captureFailureDetails()
This function loops through all the pods in the job and finds the first container in a pod that has either terminated with a non-zero exit code or is stuck in waiting stage. Using this container's execution details, the job's failureDetails field is set.
-
-