ConfigMap
Bases: DuploTenantResourceV3
apply
Apply a service.
create
Create a Configmap resource.
CLI Usage
Contents of theconfigmap.yaml
file
One liner example
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
NAME
|
The name to set the configmap to. |
None
|
body |
BODY
|
The resource to create. |
None
|
data |
DATAMAP
|
The data to add to the configmap. |
None
|
dryrun |
DRYRUN
|
Do not submit any changes to the server. |
False
|
wait |
WAIT
|
Wait for the resource to be created. |
False
|
Returns:
Name | Type | Description |
---|---|---|
message |
dict
|
Success message. |
Raises:
Type | Description |
---|---|
DuploError
|
If the resource could not be created. |
delete
Delete a ConfigMap resource by name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
NAME
|
The name of the ConfigMap resource to delete. |
required |
Returns:
Name | Type | Description |
---|---|---|
message |
dict
|
A success message. |
Raises:
Type | Description |
---|---|
DuploError
|
If the {{kind}} resource could not be found or deleted. |
find
Find ConfigMap resources by name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
NAME
|
The name of the ConfigMap resource to find. |
required |
Returns:
Name | Type | Description |
---|---|---|
resource |
dict
|
The ConfigMap object. |
Raises:
Type | Description |
---|---|
DuploError
|
If the {{kind}} could not be found. |
list
Retrieve a List of ConfigMap resources
Returns:
Name | Type | Description |
---|---|---|
list |
list
|
A list of ConfigMap. |
update
Update a V3 resource by name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
str
|
The resource to update. |
required |
Returns: Success message. Raises: DuploError: If the resource could not be created.