public class DefaultNamespaceService extends Object implements NamespaceService
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultNamespaceService.ImmutableNamespaceService |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ARQUILLIAN_FRAMEWORK |
protected org.jboss.arquillian.core.api.Instance<io.fabric8.kubernetes.clnt.v4_0.KubernetesClient> |
client |
protected static String |
COMPONENT_LABEL |
protected org.jboss.arquillian.core.api.Instance<Configuration> |
configuration |
protected NamespaceService |
delegate |
protected static String |
FRAMEWORK_LABEL |
protected static String |
ITEST_COMPONENT |
protected org.jboss.arquillian.core.api.Instance<LabelProvider> |
labelProvider |
protected org.jboss.arquillian.core.api.Instance<Logger> |
logger |
protected static String |
PROJECT_LABEL |
| Constructor and Description |
|---|
DefaultNamespaceService() |
| Modifier and Type | Method and Description |
|---|---|
io.fabric8.kubernetes.api.model.v4_0.Namespace |
annotate(String namespace,
Map<String,String> annotations)
Adds the specified annotations to the
Namespace. |
void |
clean(String namespace)
Deprecated.
|
io.fabric8.kubernetes.api.model.v4_0.Namespace |
create(String namespace)
Creates a
Namespace with the specified name. |
io.fabric8.kubernetes.api.model.v4_0.Namespace |
create(String namespace,
Map<String,String> annotations)
Creates a
Namespace with the specified name. |
Boolean |
delete(String namespace)
Deletes the specified
Namespace. |
void |
destroy(String namespace)
Destroy the
Namespace. |
Boolean |
exists(String namespace)
Checks if
Namespace can exists. |
NamespaceService |
toImmutable() |
protected static final String PROJECT_LABEL
protected static final String FRAMEWORK_LABEL
protected static final String COMPONENT_LABEL
protected static final String ARQUILLIAN_FRAMEWORK
protected static final String ITEST_COMPONENT
@Inject protected org.jboss.arquillian.core.api.Instance<io.fabric8.kubernetes.clnt.v4_0.KubernetesClient> client
@Inject protected org.jboss.arquillian.core.api.Instance<LabelProvider> labelProvider
@Inject protected org.jboss.arquillian.core.api.Instance<Logger> logger
@Inject protected org.jboss.arquillian.core.api.Instance<Configuration> configuration
protected NamespaceService delegate
public NamespaceService toImmutable()
toImmutable in interface WithToImmutable<NamespaceService>public io.fabric8.kubernetes.api.model.v4_0.Namespace create(String namespace)
NamespaceServiceNamespace with the specified name.create in interface NamespaceServicenamespace - The name of the Namespace.Namespace.public io.fabric8.kubernetes.api.model.v4_0.Namespace create(String namespace, Map<String,String> annotations)
NamespaceServiceNamespace with the specified name.create in interface NamespaceServicenamespace - The name of the Namespace.annotations - A map containing the annotations.Namespace.public io.fabric8.kubernetes.api.model.v4_0.Namespace annotate(String namespace, Map<String,String> annotations)
NamespaceServiceNamespace.annotate in interface NamespaceServicenamespace - The Namespace to annotate.annotations - A map containing the annotations.Namespace.public Boolean delete(String namespace)
NamespaceServiceNamespace.delete in interface NamespaceServicenamespace - The name of the Namespace to delete.public Boolean exists(String namespace)
NamespaceServiceNamespace can exists.exists in interface NamespaceServicenamespace - The name of the Namespace to check.Namespace exists, False otherwise.@Deprecated public void clean(String namespace)
NamespaceServiceNamespace/clean in interface NamespaceServicepublic void destroy(String namespace)
NamespaceServiceNamespace.destroy in interface NamespaceServicenamespace - The namespace to destroy.Copyright © 2018 JBoss by Red Hat. All rights reserved.