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
  • Constructor Details

    • KubernetesJobStatus

      public KubernetesJobStatus(io.kubernetes.client.openapi.models.V1Job job, String account)
  • Method Details

    • getCompletionDetails

      public Map<String,String> getCompletionDetails()
      Specified by:
      getCompletionDetails in interface com.netflix.spinnaker.clouddriver.model.JobStatus
    • getJobState

      public com.netflix.spinnaker.clouddriver.model.JobState getJobState()
      Specified by:
      getJobState in interface com.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.