remove_namespace_label
Remove a specific label from a Kubernetes namespace by providing the context name, namespace, and label key. Returns updated namespace labels in JSON format, simplifying label management in multi-cluster environments.
Instructions
Remove a label from a namespace.
Args: context_name: The Kubernetes context name namespace: The name of the namespace label_key: The label key to remove
Returns: JSON string containing the updated namespace labels
Input Schema
Name | Required | Description | Default |
---|---|---|---|
context_name | Yes | ||
label_key | Yes | ||
namespace | Yes |
Input Schema (JSON Schema)
{
"properties": {
"context_name": {
"title": "Context Name",
"type": "string"
},
"label_key": {
"title": "Label Key",
"type": "string"
},
"namespace": {
"title": "Namespace",
"type": "string"
}
},
"required": [
"context_name",
"namespace",
"label_key"
],
"title": "remove_namespace_labelArguments",
"type": "object"
}