Class DefaultResourceInstaller

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

public class DefaultResourceInstaller extends Object implements ResourceInstaller
  • Field Details

    • client

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

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

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

      @Inject protected org.jboss.arquillian.core.api.Instance<org.jboss.arquillian.core.spi.ServiceLoader> serviceLoader
    • delegate

      protected ResourceInstaller delegate
  • Constructor Details

    • DefaultResourceInstaller

      public DefaultResourceInstaller()
  • Method Details

    • toImmutable

      public ResourceInstaller toImmutable()
      Specified by:
      toImmutable in interface WithToImmutable<ResourceInstaller>
    • 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.