Class KubernetesJobProvider

java.lang.Object
com.netflix.spinnaker.clouddriver.kubernetes.provider.view.KubernetesJobProvider
All Implemented Interfaces:
com.netflix.spinnaker.clouddriver.model.JobProvider<KubernetesJobStatus>

@Component public class KubernetesJobProvider extends Object implements com.netflix.spinnaker.clouddriver.model.JobProvider<KubernetesJobStatus>
  • Method Details

    • collectJob

      @Nullable public KubernetesJobStatus collectJob(String account, String location, String id)
      Specified by:
      collectJob in interface com.netflix.spinnaker.clouddriver.model.JobProvider<KubernetesJobStatus>
    • getFileContents

      @Nullable public Map<String,Object> getFileContents(String account, String location, String id, String containerName)
      Specified by:
      getFileContents in interface com.netflix.spinnaker.clouddriver.model.JobProvider<KubernetesJobStatus>
    • getFileContentsFromPod

      @Nullable public Map<String,Object> getFileContentsFromPod(String account, String namespace, String podName, String containerName)
      This method queries a pod for logs, from which it extracts properties which it returns as a map to the caller. This is needed in cases where a pod needs to be queried directly for logs, and getFileContents() doesn't give us all the required information.
      Parameters:
      account - - account to which the pod belongs
      namespace - - namespace in which the pod runs in
      podName - - pod to query the logs
      containerName - - containerName in the pod from which logs should be queried
      Returns:
      map of property file contents
    • cancelJob

      public void cancelJob(String account, String location, String id)
      Specified by:
      cancelJob in interface com.netflix.spinnaker.clouddriver.model.JobProvider<KubernetesJobStatus>