daemonset_delete
Remove a DaemonSet from a Kubernetes namespace to manage cluster resources and configurations.
Instructions
Delete a DaemonSet from the specified namespace.
Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The DaemonSet name
Returns: Status of the deletion operation
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context_name | Yes | ||
| namespace | Yes | ||
| name | Yes |
Implementation Reference
- tools/daemonset.py:104-118 (handler)The daemonset_delete tool handler function that deletes a DaemonSet in the specified namespace using the Kubernetes AppsV1Api.def daemonset_delete(context_name: str, namespace: str, name: str): """ Delete a DaemonSet from the specified namespace. Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The DaemonSet name Returns: Status of the deletion operation """ apps_v1: AppsV1Api = get_api_clients(context_name)["apps"] apps_v1.delete_namespaced_daemon_set(name=name, namespace=namespace) return {"name": name, "status": "Deleted"}
- tools/daemonset.py:101-103 (registration)Registration of the daemonset_delete tool via the @mcp.tool() decorator, with current context and readonly permission checks.@mcp.tool() @use_current_context @check_readonly_permission