Class DefaultResourceInstaller
java.lang.Object
org.arquillian.cube.kubernetes.impl.install.DefaultResourceInstaller
- All Implemented Interfaces:
ResourceInstaller,WithToImmutable<ResourceInstaller>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.jboss.arquillian.core.api.Instance<io.fabric8.kubernetes.client.KubernetesClient> protected org.jboss.arquillian.core.api.Instance<Configuration> protected ResourceInstallerprotected org.jboss.arquillian.core.api.Instance<Logger> protected org.jboss.arquillian.core.api.Instance<org.jboss.arquillian.core.spi.ServiceLoader> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<io.fabric8.kubernetes.api.model.HasMetadata> Installs the resources found in the specified URL.Uninstalls the resources found in the specified URL.Uninstalls the resources found in the specified list.
-
Field Details
-
client
@Inject protected org.jboss.arquillian.core.api.Instance<io.fabric8.kubernetes.client.KubernetesClient> client -
configuration
-
logger
-
serviceLoader
@Inject protected org.jboss.arquillian.core.api.Instance<org.jboss.arquillian.core.spi.ServiceLoader> serviceLoader -
delegate
-
-
Constructor Details
-
DefaultResourceInstaller
public DefaultResourceInstaller()
-
-
Method Details
-
toImmutable
- Specified by:
toImmutablein interfaceWithToImmutable<ResourceInstaller>
-
install
Description copied from interface:ResourceInstallerInstalls the resources found in the specified URL.- Specified by:
installin interfaceResourceInstaller- Parameters:
url- The URL to read resources from.- Returns:
- The list with the created resources.
-
uninstall
Description copied from interface:ResourceInstallerUninstalls the resources found in the specified URL.- Specified by:
uninstallin interfaceResourceInstaller- 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:ResourceInstallerUninstalls the resources found in the specified list.- Specified by:
uninstallin interfaceResourceInstaller- Parameters:
list- The list with the resources.- Returns:
- A map of the resources to their delete status.
-