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 Summary
FieldsModifier and TypeFieldDescriptionprotected final io.fabric8.kubernetes.client.KubernetesClientprotected final Configurationprotected final Loggerprotected final List<io.fabric8.kubernetes.api.builder.Visitor> -
Constructor Summary
ConstructorsConstructorDescriptionImmutableResourceInstaller(io.fabric8.kubernetes.client.KubernetesClient client, Configuration configuration, Logger logger, List<io.fabric8.kubernetes.api.builder.Visitor> visitors) -
Method Summary
Modifier and TypeMethodDescriptionList<io.fabric8.kubernetes.api.model.HasMetadata> Installs the resources found in the specified URL.voidUninstalls the resources found in the specified URL.Uninstalls the resources found in the specified list.
-
Field Details
-
client
protected final io.fabric8.kubernetes.client.KubernetesClient client -
configuration
-
logger
-
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
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.
-
preUninstallCheck
public void preUninstallCheck() -
toImmutable
- Specified by:
toImmutablein interfaceWithToImmutable<ResourceInstaller>
-