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 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

      void saveNamespaceConfiguration() throws KubernetesManagerException
      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

      void saveNamespaceConfiguration(String storedArtifactPath) throws KubernetesManagerException
      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

      @NotNull @NotNull String getTag()
      Retrieve the tag of this namespace
      Returns:
      The tag of this namespace