Class Kubectl
java.lang.Object
io.skodjob.testframe.clients.cmdClient.BaseCmdKubeClient<Kubectl>
io.skodjob.testframe.clients.cmdClient.Kubectl
- All Implemented Interfaces:
KubeCmdClient<Kubectl>
A
KubeCmdClient wrapping kubectl.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncmd()Gets the command name for kubectl.Gets the default OLM (Operator Lifecycle Manager) namespace.Gets the current namespace of the Kubectl instance.Gets the username.inNamespace(String namespace) Sets the namespace for the Kubectl instance.Methods inherited from class io.skodjob.testframe.clients.cmdClient.BaseCmdKubeClient
apply, applyContent, create, createNamespace, createResourceAndApply, delete, deleteByName, deleteContent, deleteNamespace, describe, exec, exec, exec, exec, execInPod, execInPodContainer, execInPodContainer, get, getEvents, getResourceAsJson, getResourceAsYaml, getResourcesAsYaml, list, listResourcesByLabel, logs, process, replace, scaleByName, searchInLog, searchInLog, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.skodjob.testframe.clients.cmdClient.KubeCmdClient
apply, create, delete, logs
-
Field Details
-
KUBECTL
The command name for kubectl.- See Also:
-
-
Constructor Details
-
Kubectl
public Kubectl()Constructs a new Kubectl instance. -
Kubectl
Constructs a new Kubectl instance with the specified configuration.- Parameters:
config- The configuration to use.
-
-
Method Details
-
inNamespace
Sets the namespace for the Kubectl instance.- Parameters:
namespace- The namespace to set.- Returns:
- A new Kubectl instance with the specified namespace.
-
getCurrentNamespace
Gets the current namespace of the Kubectl instance.- Returns:
- The current namespace.
-
defaultOlmNamespace
Gets the default OLM (Operator Lifecycle Manager) namespace.- Returns:
- The default OLM namespace.
-
cmd
Gets the command name for kubectl.- Specified by:
cmdin interfaceKubeCmdClient<Kubectl>- Specified by:
cmdin classBaseCmdKubeClient<Kubectl>- Returns:
- The command name.
-
getUsername
Gets the username.- Returns:
- The username.
-