Class DefaultResourceInstaller.ImmutableResourceInstaller

java.lang.Object
org.arquillian.cube.kubernetes.impl.install.DefaultResourceInstaller.ImmutableResourceInstaller
All Implemented Interfaces:
ResourceInstaller, WithToImmutable<ResourceInstaller>
Enclosing class:
DefaultResourceInstaller

public static class DefaultResourceInstaller.ImmutableResourceInstaller extends Object implements ResourceInstaller, WithToImmutable<ResourceInstaller>
  • Field Details

    • client

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

      protected final Configuration configuration
    • logger

      protected final Logger logger
    • visitors

      protected final List<io.fabric8.kubernetes.api.builder.Visitor> visitors
  • Constructor Details

    • ImmutableResourceInstaller

      public ImmutableResourceInstaller(io.fabric8.kubernetes.client.KubernetesClient client, Configuration configuration, Logger logger, List<io.fabric8.kubernetes.api.builder.Visitor> visitors)
  • Method Details

    • install

      public List<io.fabric8.kubernetes.api.model.HasMetadata> install(URL url)
      Description copied from interface: ResourceInstaller
      Installs the resources found in the specified URL.
      Specified by:
      install in interface ResourceInstaller
      Parameters:
      url - The URL to read resources from.
      Returns:
      The list with the created resources.
    • uninstall

      public Map<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> uninstall(URL url)
      Description copied from interface: ResourceInstaller
      Uninstalls the resources found in the specified URL.
      Specified by:
      uninstall in interface ResourceInstaller
      Parameters:
      url - The URL to read resources from.
      Returns:
      A map of the resources to their delete status.
    • uninstall

      public Map<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> uninstall(List<io.fabric8.kubernetes.api.model.HasMetadata> list)
      Description copied from interface: ResourceInstaller
      Uninstalls the resources found in the specified list.
      Specified by:
      uninstall in interface ResourceInstaller
      Parameters:
      list - The list with the resources.
      Returns:
      A map of the resources to their delete status.
    • preUninstallCheck

      public void preUninstallCheck()
    • toImmutable

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