Class DefaultNamespaceService
java.lang.Object
org.arquillian.cube.kubernetes.impl.namespace.DefaultNamespaceService
- All Implemented Interfaces:
NamespaceService,WithToImmutable<NamespaceService>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected org.jboss.arquillian.core.api.Instance<io.fabric8.kubernetes.client.KubernetesClient> protected static final Stringprotected org.jboss.arquillian.core.api.Instance<Configuration> protected NamespaceServiceprotected static final Stringprotected static final Stringprotected org.jboss.arquillian.core.api.Instance<LabelProvider> protected org.jboss.arquillian.core.api.Instance<Logger> protected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.fabric8.kubernetes.api.model.NamespaceAdds the specified annotations to theNamespace.voidDeprecated.io.fabric8.kubernetes.api.model.NamespaceCreates aNamespacewith the specified name.io.fabric8.kubernetes.api.model.NamespaceCreates aNamespacewith the specified name.Deletes the specifiedNamespace.voidDestroy theNamespace.Checks ifNamespacecan exists.
-
Field Details
-
PROJECT_LABEL
- See Also:
-
FRAMEWORK_LABEL
- See Also:
-
COMPONENT_LABEL
- See Also:
-
ARQUILLIAN_FRAMEWORK
- See Also:
-
ITEST_COMPONENT
- See Also:
-
client
@Inject protected org.jboss.arquillian.core.api.Instance<io.fabric8.kubernetes.client.KubernetesClient> client -
labelProvider
-
logger
-
configuration
-
delegate
-
-
Constructor Details
-
DefaultNamespaceService
public DefaultNamespaceService()
-
-
Method Details
-
toImmutable
- Specified by:
toImmutablein interfaceWithToImmutable<NamespaceService>
-
create
Description copied from interface:NamespaceServiceCreates aNamespacewith the specified name.- Specified by:
createin interfaceNamespaceService- Parameters:
namespace- The name of theNamespace.- Returns:
- The created
Namespace.
-
create
public io.fabric8.kubernetes.api.model.Namespace create(String namespace, Map<String, String> annotations) Description copied from interface:NamespaceServiceCreates aNamespacewith the specified name.- Specified by:
createin interfaceNamespaceService- Parameters:
namespace- The name of theNamespace.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:NamespaceServiceAdds the specified annotations to theNamespace.- Specified by:
annotatein interfaceNamespaceService- Parameters:
namespace- TheNamespaceto annotate.annotations- A map containing the annotations.- Returns:
- The annotated
Namespace.
-
delete
Description copied from interface:NamespaceServiceDeletes the specifiedNamespace.- Specified by:
deletein interfaceNamespaceService- Parameters:
namespace- The name of theNamespaceto delete.- Returns:
- True if it was succesfully delete, False otherwise.
-
exists
Description copied from interface:NamespaceServiceChecks ifNamespacecan exists.- Specified by:
existsin interfaceNamespaceService- Parameters:
namespace- The name of theNamespaceto check.- Returns:
- True if
Namespaceexists, False otherwise.
-
clean
Deprecated.Description copied from interface:NamespaceServiceClears all resources from the specifiedNamespace/- Specified by:
cleanin interfaceNamespaceService
-
destroy
Description copied from interface:NamespaceServiceDestroy theNamespace.- Specified by:
destroyin interfaceNamespaceService- Parameters:
namespace- The namespace to destroy.
-