-
Method Summary
io.fabric8.kubernetes.api.model.Namespace
Adds the specified annotations to the Namespace.
void
io.fabric8.kubernetes.api.model.Namespace
Creates a Namespace with the specified name.
io.fabric8.kubernetes.api.model.Namespace
Creates a Namespace with the specified name.
Deletes the specified Namespace.
void
Checks if Namespace can exists.
-
Method Details
-
create
io.fabric8.kubernetes.api.model.Namespace create(String namespace)
Creates a Namespace with the specified name.
- Parameters:
namespace - The name of the Namespace.
- Returns:
- The created
Namespace.
-
create
Creates a Namespace with the specified name.
- Parameters:
namespace - The name of the Namespace.
annotations - A map containing the annotations.
- Returns:
- The created
Namespace.
-
annotate
Adds the specified annotations to the Namespace.
- Parameters:
namespace - The Namespace to annotate.
annotations - A map containing the annotations.
- Returns:
- The annotated
Namespace.
-
delete
Deletes the specified Namespace.
- Parameters:
namespace - The name of the Namespace to delete.
- Returns:
- True if it was succesfully delete, False otherwise.
-
exists
Checks if Namespace can exists.
- Parameters:
namespace - The name of the Namespace to check.
- Returns:
- True if
Namespace exists, False otherwise.
-
clean
Deprecated.
Clears all resources from the specified Namespace/
-
destroy
void destroy(String namespace)
Destroy the Namespace.
- Parameters:
namespace - The namespace to destroy.