Class DefaultNamespaceService.ImmutableNamespaceService

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

public static class DefaultNamespaceService.ImmutableNamespaceService extends Object implements NamespaceService, WithToImmutable<NamespaceService>
  • Field Details

    • client

      protected final io.fabric8.kubernetes.client.KubernetesClient client
    • labelProvider

      protected final LabelProvider labelProvider
    • logger

      protected final Logger logger
    • configuration

      protected final Configuration configuration
  • Constructor Details

    • ImmutableNamespaceService

      public ImmutableNamespaceService(io.fabric8.kubernetes.client.KubernetesClient client, Configuration configuration, LabelProvider labelProvider, Logger logger)
  • Method Details

    • 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.
    • toImmutable

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