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 Object
implements com.netflix.spinnaker.clouddriver.model.JobStatus
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classthis class captures details about a container execution.static class -
Constructor Summary
ConstructorsConstructorDescriptionKubernetesJobStatus(io.kubernetes.client.openapi.models.V1Job job, String account) -
Method Summary
Modifier and TypeMethodDescriptionvoidThis 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.com.netflix.spinnaker.clouddriver.model.JobStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.netflix.spinnaker.clouddriver.model.JobStatus
getAccount, getCompletedTime, getCreatedTime, getId, getLocation, getName, getProvider
-
Constructor Details
-
KubernetesJobStatus
-
-
Method Details
-
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.
-