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::
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster | No | ||
| scc_name | Yes | ||
| namespace | Yes | ||
| service_account | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |