Class Oc
java.lang.Object
io.skodjob.testframe.clients.cmdClient.BaseCmdKubeClient<Oc>
io.skodjob.testframe.clients.cmdClient.Oc
- All Implemented Interfaces:
KubeCmdClient<Oc>
A
KubeCmdClient implementation wrapping oc.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncmd()Gets the command name for oc.createNamespace(String name) Creates a new namespace.Gets the default OLM (Operator Lifecycle Manager) namespace.Gets the current namespace of the Oc instance.Gets the username.inNamespace(String namespace) Sets the namespace for the Oc instance.Creates a new application.Methods inherited from class io.skodjob.testframe.clients.cmdClient.BaseCmdKubeClient
apply, applyContent, create, 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
-
Constructor Details
-
Oc
public Oc()Constructs a new Oc instance. -
Oc
Constructs a new Oc instance with the specified configuration.- Parameters:
config- The configuration to use.
-
-
Method Details
-
defaultOlmNamespace
Gets the default OLM (Operator Lifecycle Manager) namespace.- Returns:
- The default OLM namespace.
-
inNamespace
Sets the namespace for the Oc instance.- Parameters:
namespace- The namespace to set.- Returns:
- A new Oc instance with the specified namespace.
-
getCurrentNamespace
Gets the current namespace of the Oc instance.- Returns:
- The current namespace.
-
createNamespace
Creates a new namespace.- Specified by:
createNamespacein interfaceKubeCmdClient<Oc>- Overrides:
createNamespacein classBaseCmdKubeClient<Oc>- Parameters:
name- The name of the namespace to create.- Returns:
- The Oc instance.
-
newApp
Creates a new application.- Parameters:
template- The template file.params- The parameters for the template.- Returns:
- The Oc instance.
-
cmd
Gets the command name for oc.- Specified by:
cmdin interfaceKubeCmdClient<Oc>- Specified by:
cmdin classBaseCmdKubeClient<Oc>- Returns:
- The command name.
-
getUsername
Gets the username.- Returns:
- The username.
-