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.Poddone()Apply theRunConfigonto the cluster and create PodRunOperationsinNamespace(String namespace)Specify namespace for the operationRunOperationswithImage(String image)Specify image for the PodRunOperationswithName(String name)Specify name for the PodRunOperationswithRunConfig(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:
RunOperationswith injected namespace
-
withImage
public RunOperations withImage(String image)
Specify image for the Pod- Parameters:
image- image as a string- Returns:
RunOperationswith image injected intoRunConfig
-
withName
public RunOperations withName(String name)
Specify name for the Pod- Parameters:
name- name of the pod to be created- Returns:
RunOperationswith name injected intoRunConfig
-
withRunConfig
public RunOperations withRunConfig(RunConfig generatorRunConfig)
Specify complex configuration for Pod creating usingRunConfig- Parameters:
generatorRunConfig-RunConfigwhich allows to provide configuring environment variables, labels, resources, ports etc- Returns:
RunOperationswith specified configuration
-
done
public io.fabric8.kubernetes.api.model.Pod done()
Apply theRunConfigonto the cluster and create Pod- Returns:
- Pod which got created from the operation
-
-