get_namespace_annotations
Fetch all annotations for a Kubernetes namespace by providing its name, with optional kubeconfig path for cluster access.
Instructions
Get annotations for a specific namespace.
This function retrieves all annotations associated with a Kubernetes namespace. Annotations are similar to labels but are typically used for storing non-identifying metadata.
Args: namespace: The name of the namespace to get annotations from. kubeconfig_path: Optional path to a kubeconfig file. If not provided, the default kubeconfig from the environment will be used.
Returns: Union[Dict[str, str], str]: Dictionary of annotations on success, or error object if failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | Yes | ||
| kubeconfig_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |