get_configmap_summaries
Lists ConfigMap summaries for a namespace or all namespaces, showing name, namespace, key count, data size, and age without reading ConfigMap contents.
Instructions
Retrieves a list of ConfigMapSummary objects for ConfigMaps in a given namespace
or all namespaces, similar to kubectl get configmaps.
Note that this returns only summary metadata (not the ConfigMap contents); use
`get_configmap` to read the actual data map.
Parameters
----------
namespace : Optional[str], default=None
The specific namespace to list ConfigMaps from. If None, lists ConfigMaps from
all namespaces.
Returns
-------
list of ConfigMapSummary
A list of ConfigMapSummary objects, each with the following fields:
name : str
Name of the ConfigMap.
namespace : str
Namespace in which the ConfigMap lives.
key_count : int
Number of keys across `data` and `binary_data`.
data_size : int
Approximate total size in bytes of all values.
age : datetime.timedelta
Age of the ConfigMap (current time minus creation timestamp).
Raises
------
K8sConfigError
If unable to initialize the K8S API.
K8sApiError
If the API call to list ConfigMaps fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |