add_namespace_label
Adds or updates a label on a specified Kubernetes namespace using context name, label key, and value. Returns JSON with updated namespace labels.
Instructions
Add or update a label on a namespace.
Args: context_name: The Kubernetes context name namespace: The name of the namespace label_key: The label key to add label_value: The label value to set
Returns: JSON string containing the updated namespace labels
Input Schema
Name | Required | Description | Default |
---|---|---|---|
context_name | Yes | ||
label_key | Yes | ||
label_value | Yes | ||
namespace | Yes |
Input Schema (JSON Schema)
{
"properties": {
"context_name": {
"title": "Context Name",
"type": "string"
},
"label_key": {
"title": "Label Key",
"type": "string"
},
"label_value": {
"title": "Label Value",
"type": "string"
},
"namespace": {
"title": "Namespace",
"type": "string"
}
},
"required": [
"context_name",
"namespace",
"label_key",
"label_value"
],
"title": "add_namespace_labelArguments",
"type": "object"
}