role_create
Define and create Kubernetes roles in specified namespaces using policy rules with the k8s-pilot server. Simplify role management across multiple clusters.
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
Name | Required | Description | Default |
---|---|---|---|
context_name | Yes | ||
name | Yes | ||
namespace | Yes | ||
rules | Yes |
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"
}