Class KubernetesJobStatus

  • All Implemented Interfaces:
    com.netflix.spinnaker.clouddriver.model.JobStatus

    public class KubernetesJobStatus
    extends java.lang.Object
    implements com.netflix.spinnaker.clouddriver.model.JobStatus
    • 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
      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.
      java.util.Map<java.lang.String,​java.lang.String> getCompletionDetails()  
      com.netflix.spinnaker.clouddriver.model.JobState getJobState()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.netflix.spinnaker.clouddriver.model.JobStatus

        getAccount, getCompletedTime, getCreatedTime, getId, getLocation, getName, getProvider
    • Constructor Detail

      • KubernetesJobStatus

        public KubernetesJobStatus​(io.kubernetes.client.openapi.models.V1Job job,
                                   java.lang.String account)
    • Method Detail

      • getCompletionDetails

        public java.util.Map<java.lang.String,​java.lang.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.