Class RunOperations
- java.lang.Object
-
- io.fabric8.kubernetes.client.extended.run.RunOperations
-
public class RunOperations extends Object
-
-
Constructor Summary
Constructors Constructor Description RunOperations(okhttp3.OkHttpClient client, Config config, String namespace, RunConfigBuilder runConfigBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.fabric8.kubernetes.api.model.Pod
done()
Apply theRunConfig
onto the cluster and create PodRunOperations
inNamespace(String namespace)
Specify namespace for the operationRunOperations
withImage(String image)
Specify image for the PodRunOperations
withName(String name)
Specify name for the PodRunOperations
withRunConfig(RunConfig generatorRunConfig)
Specify complex configuration for Pod creating usingRunConfig
-
-
-
Constructor Detail
-
RunOperations
public RunOperations(okhttp3.OkHttpClient client, Config config, String namespace, RunConfigBuilder runConfigBuilder)
-
-
Method Detail
-
inNamespace
public RunOperations inNamespace(String namespace)
Specify namespace for the operation- Parameters:
namespace
- namespace in which resource needs to be created- Returns:
RunOperations
with injected namespace
-
withImage
public RunOperations withImage(String image)
Specify image for the Pod- Parameters:
image
- image as a string- Returns:
RunOperations
with image injected intoRunConfig
-
withName
public RunOperations withName(String name)
Specify name for the Pod- Parameters:
name
- name of the pod to be created- Returns:
RunOperations
with name injected intoRunConfig
-
withRunConfig
public RunOperations withRunConfig(RunConfig generatorRunConfig)
Specify complex configuration for Pod creating usingRunConfig
- Parameters:
generatorRunConfig
-RunConfig
which allows to provide configuring environment variables, labels, resources, ports etc- Returns:
RunOperations
with specified configuration
-
done
public io.fabric8.kubernetes.api.model.Pod done()
Apply theRunConfig
onto the cluster and create Pod- Returns:
- Pod which got created from the operation
-
-