k8s-pilot

by bourbonkk

role_create

Create a Role in a specified Kubernetes namespace using context, name, and policy rules. Returns the status of the operation, enabling role-based access control management.

Instructions

Create a Role in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Role name rules: List of policy rules

Returns: Status of the creation operation

Input Schema

NameRequiredDescriptionDefault
context_nameYes
nameYes
namespaceYes
rulesYes

Input Schema (JSON Schema)

{ "properties": { "context_name": { "title": "Context Name", "type": "string" }, "name": { "title": "Name", "type": "string" }, "namespace": { "title": "Namespace", "type": "string" }, "rules": { "items": {}, "title": "Rules", "type": "array" } }, "required": [ "context_name", "namespace", "name", "rules" ], "title": "role_createArguments", "type": "object" }
ID: varavj97rf