openshift

OpenShift: Add SCC to Service Account in Yaml


Is there an equivalent for the following command in yaml? Using OpenShift 4.2 currently

oc adm policy add-scc-to-user <scc_name> <user_name>

Solution

  • There's example of SCC. You have to add element to 'users' list, so you can export the SCC and re-apply modifyed object.