Class KubectlWrapper.Builder
- java.lang.Object
-
- com.google.jenkins.plugins.k8sengine.KubectlWrapper.Builder
-
- Enclosing class:
- KubectlWrapper
public static class KubectlWrapper.Builder extends Object
Builder forKubectlWrapper
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubectlWrapper
build()
Builds a newKubectlWrapper
.KubectlWrapper.Builder
kubeConfig(KubeConfig kubeConfig)
Sets theKubeConfig
to be used by the wrapper.KubectlWrapper.Builder
launcher(Launcher launcher)
Sets theLauncher
to be used by the wrapper.KubectlWrapper.Builder
namespace(String namespace)
Sets the namespace to be used by the wrapper.KubectlWrapper.Builder
workspace(FilePath workspace)
Sets the workspace to be used by the wrapper.
-
-
-
Method Detail
-
launcher
public KubectlWrapper.Builder launcher(Launcher launcher)
Sets theLauncher
to be used by the wrapper.- Parameters:
launcher
- TheLauncher
to be set.- Returns:
- A reference to the
KubectlWrapper.Builder
.
-
kubeConfig
public KubectlWrapper.Builder kubeConfig(KubeConfig kubeConfig)
Sets theKubeConfig
to be used by the wrapper.- Parameters:
kubeConfig
- TheKubeConfig
to be set.- Returns:
- A reference to the
KubectlWrapper.Builder
.
-
workspace
public KubectlWrapper.Builder workspace(FilePath 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
public KubectlWrapper.Builder namespace(String 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
public KubectlWrapper build()
Builds a newKubectlWrapper
.- Returns:
- A new
KubectlWrapper
.
-
-