k8s-pilot

by bourbonkk

add_namespace_label

Assign or modify a label on a Kubernetes namespace using context, namespace, label key, and value. Returns updated namespace labels in JSON for cluster management.

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

NameRequiredDescriptionDefault
context_nameYes
label_keyYes
label_valueYes
namespaceYes

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" }
ID: varavj97rf