patch_k8s_resource
Patches a Kubernetes resource. This is similar to running kubectl patch.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"parent": "<parent>",
"resourceType": "<resourceType>",
"name": "<name>",
"patch": "<patch>"
},
"name": "patch_k8s_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Required. The name of the resource to patch. | |
| patch | Yes | Required. The patch to apply in JSON format. | |
| parent | Yes | Required. The cluster to patch the resource in. Format: projects/{project}/locations/{location}/clusters/{cluster} | |
| namespace | No | Optional. The namespace of the resource. If not specified, "default" is used. | |
| patchType | No | Optional. The patch strategy to apply. Valid values are "strategic", "merge", or "json". If not specified, "strategic" patch type will be used. | |
| resourceType | Yes | Required. The type of resource to patch. e.g. "pods", "deployments", "services". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Errors encountered during patching. | |
| result | No | The result of the patch operation. |