public class RunOperations extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
RunOperations.RunConfigNested |
| Constructor and Description |
|---|
RunOperations(KubernetesClient client,
RunConfig runConfig) |
| Modifier and Type | Method and Description |
|---|---|
io.fabric8.kubernetes.api.model.Pod |
done()
Apply the
RunConfig onto the cluster and create Pod |
RunOperations |
inNamespace(String namespace)
Specify namespace for the operation
|
RunOperations |
withImage(String image)
Specify image for the Pod
|
RunOperations |
withName(String name)
Specify name for the Pod
|
RunOperations.RunConfigNested |
withNewRunConfig()
Provides access to a nested
RunConfig builder that inherits the current
values for name and image if they are already set. |
RunOperations |
withRunConfig(RunConfig generatorRunConfig)
Deprecated.
use
withNewRunConfig() instead |
public RunOperations(KubernetesClient client, RunConfig runConfig)
public RunOperations inNamespace(String namespace)
namespace - namespace in which resource needs to be createdRunOperations with injected namespacepublic RunOperations withImage(String image)
image - image as a stringRunOperations with image injected into RunConfigpublic RunOperations withName(String name)
name - name of the pod to be createdRunOperations with name injected into RunConfig@Deprecated public RunOperations withRunConfig(RunConfig generatorRunConfig)
withNewRunConfig() insteadRunConfig.
generatorRunConfig - RunConfig which allows to provide configuring environment variables, labels, resources,
ports etcRunOperations with specified configurationpublic RunOperations.RunConfigNested withNewRunConfig()
RunConfig builder that inherits the current
values for name and image if they are already set. Call the RunOperations.RunConfigNested.done() method to create the Podpublic io.fabric8.kubernetes.api.model.Pod done()
RunConfig onto the cluster and create PodCopyright © 2015–2024 Red Hat. All rights reserved.