add_scc_to_service_account
Grant a specific Security Context Constraint (SCC) to a ServiceAccount in a given namespace using OpenShift CLI.
Instructions
Grant an SCC to a ServiceAccount via 'oc adm policy add-scc-to-user'. Equivalent to: oc adm policy add-scc-to-user system:serviceaccount::
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"scc_name": "<scc_name>",
"service_account": "<service_account>",
"namespace": "<namespace>"
},
"name": "add_scc_to_service_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster | No | ||
| scc_name | Yes | ||
| namespace | Yes | ||
| service_account | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |