Package dev.galasa.kubernetes
Interface IKubernetesNamespace
public interface IKubernetesNamespace
This is the main interface to a provisioned Kubernetes namespace on an infrastructure cluster.
Access to the Object is via the
KubernetesNamespace
annotation or the SPI.-
Method Summary
Modifier and TypeMethodDescription@NotNull IResource
createResource
(@NotNull String yaml) Create a Resource in Kubernetes.@NotNull String
getTag()
Retrieve the tag of this namespacevoid
Save all the supported resources to stored artifacts in the default folder, along with pod logsvoid
saveNamespaceConfiguration
(String storedArtifactPath) Save all the supported resources to stored artifacts in the default folder, along with pod logs
-
Method Details
-
createResource
@NotNull @NotNull IResource createResource(@NotNull @NotNull String yaml) throws KubernetesManagerException Create a Resource in Kubernetes. The Manager appends certain information to the YAML before creating the resource, like the run name and possibly storage classes.- Parameters:
yaml
-- Returns:
- Throws:
KubernetesManagerException
-
getFullId
String getFullId()- Returns:
- the Full ID of the namespace in the form cluserid/namespaceid
-
saveNamespaceConfiguration
Save all the supported resources to stored artifacts in the default folder, along with pod logs- Throws:
KubernetesManagerException
- if there are problems saving the entire configuration to storedartifacts
-
saveNamespaceConfiguration
Save all the supported resources to stored artifacts in the default folder, along with pod logs- Parameters:
storedArtifactPath
- The path in stored artifacts to save the configuration in. If null, will default.- Throws:
KubernetesManagerException
- if there are problems saving the entire configuration to storedartifacts
-
getTag
Retrieve the tag of this namespace- Returns:
- The tag of this namespace
-