pod_update
Update Kubernetes pod labels efficiently within specified context and namespace using k8s-pilot. Streamline metadata management across multiple clusters.
Instructions
Update an existing pod's metadata (only labels can be updated for an existing pod).
Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The pod name labels: New labels to apply to the pod
Returns: Information about the updated pod
Input Schema
Name | Required | Description | Default |
---|---|---|---|
context_name | Yes | ||
labels | No | ||
name | Yes | ||
namespace | Yes |
Input Schema (JSON Schema)
{
"properties": {
"context_name": {
"title": "Context Name",
"type": "string"
},
"labels": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Labels"
},
"name": {
"title": "Name",
"type": "string"
},
"namespace": {
"title": "Namespace",
"type": "string"
}
},
"required": [
"context_name",
"namespace",
"name"
],
"title": "pod_updateArguments",
"type": "object"
}