Class RunOperations
- java.lang.Object
-
- io.fabric8.kubernetes.client.extended.run.RunOperations
-
public class RunOperations extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classRunOperations.RunConfigNested
-
Constructor Summary
Constructors Constructor Description RunOperations(KubernetesClient client, RunConfig runConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated 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 PodRunOperations.RunConfigNestedwithNewRunConfig()Provides access to a nestedRunConfigbuilder that inherits the current values for name and image if they are already set.RunOperationswithRunConfig(RunConfig generatorRunConfig)Deprecated.usewithNewRunConfig()instead
-
-
-
Constructor Detail
-
RunOperations
public RunOperations(KubernetesClient client, RunConfig runConfig)
-
-
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
@Deprecated public RunOperations withRunConfig(RunConfig generatorRunConfig)
Deprecated.usewithNewRunConfig()insteadSpecify complex configuration for Pod creating usingRunConfig.
WARNING: this will overwrite any of the previous calls, such as withName to this context- Parameters:
generatorRunConfig-RunConfigwhich allows to provide configuring environment variables, labels, resources, ports etc- Returns:
RunOperationswith specified configuration
-
withNewRunConfig
public RunOperations.RunConfigNested withNewRunConfig()
Provides access to a nestedRunConfigbuilder that inherits the current values for name and image if they are already set. Call theRunOperations.RunConfigNested.done()method to create thePod- Returns:
-
done
public io.fabric8.kubernetes.api.model.Pod done()
Apply theRunConfigonto the cluster and create Pod- Returns:
- Pod which got created from the operation
-
-