Class KubectlWrapper.Builder
java.lang.Object
com.google.jenkins.plugins.k8sengine.KubectlWrapper.Builder
- Enclosing class:
- KubectlWrapper
Builder for
KubectlWrapper.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newKubectlWrapper.kubeConfig(KubeConfig kubeConfig) Sets theKubeConfigto be used by the wrapper.Sets theLauncherto be used by the wrapper.Sets the namespace to be used by the wrapper.Sets the workspace to be used by the wrapper.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
launcher
Sets theLauncherto be used by the wrapper.- Parameters:
launcher- TheLauncherto be set.- Returns:
- A reference to the
KubectlWrapper.Builder.
-
kubeConfig
Sets theKubeConfigto be used by the wrapper.- Parameters:
kubeConfig- TheKubeConfigto be set.- Returns:
- A reference to the
KubectlWrapper.Builder.
-
workspace
Sets the workspace to be used by the wrapper.- Parameters:
workspace- The workspace to be set.- Returns:
- A reference to the
KubectlWrapper.Builder.
-
namespace
Sets the namespace to be used by the wrapper.- Parameters:
namespace- The namespace to be set.- Returns:
- A reference to the
KubectlWrapper.Builder.
-
build
Builds a newKubectlWrapper.- Returns:
- A new
KubectlWrapper.
-