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 Summary
Modifier and TypeMethodDescriptionvoidcollectJob(String account, String location, String id) getFileContents(String account, String location, String id, String containerName) 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.Methods 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.JobProvider
getPlatform
-
Method Details
-
collectJob
- Specified by:
collectJobin interfacecom.netflix.spinnaker.clouddriver.model.JobProvider<KubernetesJobStatus>
-
getFileContents
@Nullable public Map<String,Object> getFileContents(String account, String location, String id, String containerName) - Specified by:
getFileContentsin interfacecom.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 belongsnamespace- - namespace in which the pod runs inpodName- - pod to query the logscontainerName- - containerName in the pod from which logs should be queried- Returns:
- map of property file contents
-
cancelJob
- Specified by:
cancelJobin interfacecom.netflix.spinnaker.clouddriver.model.JobProvider<KubernetesJobStatus>
-