Class DefaultNamespaceService

java.lang.Object
org.arquillian.cube.kubernetes.impl.namespace.DefaultNamespaceService
All Implemented Interfaces:
NamespaceService, WithToImmutable<NamespaceService>

public class DefaultNamespaceService extends Object implements NamespaceService
  • Field Details

    • PROJECT_LABEL

      protected static final String PROJECT_LABEL
      See Also:
    • FRAMEWORK_LABEL

      protected static final String FRAMEWORK_LABEL
      See Also:
    • COMPONENT_LABEL

      protected static final String COMPONENT_LABEL
      See Also:
    • ARQUILLIAN_FRAMEWORK

      protected static final String ARQUILLIAN_FRAMEWORK
      See Also:
    • ITEST_COMPONENT

      protected static final String ITEST_COMPONENT
      See Also:
    • client

      @Inject protected org.jboss.arquillian.core.api.Instance<io.fabric8.kubernetes.client.KubernetesClient> client
    • labelProvider

      @Inject protected org.jboss.arquillian.core.api.Instance<LabelProvider> labelProvider
    • logger

      @Inject protected org.jboss.arquillian.core.api.Instance<Logger> logger
    • configuration

      @Inject protected org.jboss.arquillian.core.api.Instance<Configuration> configuration
    • delegate

      protected NamespaceService delegate
  • Constructor Details

    • DefaultNamespaceService

      public DefaultNamespaceService()
  • Method Details

    • toImmutable

      public NamespaceService toImmutable()
      Specified by:
      toImmutable in interface WithToImmutable<NamespaceService>
    • create

      public io.fabric8.kubernetes.api.model.Namespace create(String namespace)
      Description copied from interface: NamespaceService
      Creates a Namespace with the specified name.
      Specified by:
      create in interface NamespaceService
      Parameters:
      namespace - The name of the Namespace.
      Returns:
      The created Namespace.
    • create

      public io.fabric8.kubernetes.api.model.Namespace create(String namespace, Map<String,String> annotations)
      Description copied from interface: NamespaceService
      Creates a Namespace with the specified name.
      Specified by:
      create in interface NamespaceService
      Parameters:
      namespace - The name of the Namespace.
      annotations - A map containing the annotations.
      Returns:
      The created Namespace.
    • annotate

      public io.fabric8.kubernetes.api.model.Namespace annotate(String namespace, Map<String,String> annotations)
      Description copied from interface: NamespaceService
      Adds the specified annotations to the Namespace.
      Specified by:
      annotate in interface NamespaceService
      Parameters:
      namespace - The Namespace to annotate.
      annotations - A map containing the annotations.
      Returns:
      The annotated Namespace.
    • delete

      public Boolean delete(String namespace)
      Description copied from interface: NamespaceService
      Deletes the specified Namespace.
      Specified by:
      delete in interface NamespaceService
      Parameters:
      namespace - The name of the Namespace to delete.
      Returns:
      True if it was succesfully delete, False otherwise.
    • exists

      public Boolean exists(String namespace)
      Description copied from interface: NamespaceService
      Checks if Namespace can exists.
      Specified by:
      exists in interface NamespaceService
      Parameters:
      namespace - The name of the Namespace to check.
      Returns:
      True if Namespace exists, False otherwise.
    • clean

      @Deprecated public void clean(String namespace)
      Deprecated.
      Description copied from interface: NamespaceService
      Clears all resources from the specified Namespace/
      Specified by:
      clean in interface NamespaceService
    • destroy

      public void destroy(String namespace)
      Description copied from interface: NamespaceService
      Destroy the Namespace.
      Specified by:
      destroy in interface NamespaceService
      Parameters:
      namespace - The namespace to destroy.