Class RunOperations


  • public class RunOperations
    extends Object
    • 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
      • withRunConfig

        public RunOperations withRunConfig​(RunConfig generatorRunConfig)
        Specify complex configuration for Pod creating using RunConfig
        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 the RunConfig onto the cluster and create Pod
        Returns:
        Pod which got created from the operation