Openshift: how to edit scc non-interactively?
问题 I am experimenting with openshift/minishift, I find myself having to run: oc edit scc privileged and add: - system:serviceaccount:default:router So I can expose the pods. Is there a way to do it in a script? I know oc adm have some command for policy manipulation but I can't figure out how to add this line. 回答1: You can achieve it using oc patch command and with type json. The snippet below will add a new item to array before 0th element. You can try it out with a fake "bla" value etc. oc