|
2 | 2 | //
|
3 | 3 | // * authentication/managing-security-context-constraints.adoc
|
4 | 4 |
|
| 5 | +:_mod-docs-content-type: REFERENCE |
5 | 6 | [id="security-context-constraints-command-reference_{context}"]
|
6 | 7 | = Reference of security context constraints commands
|
7 | 8 |
|
8 |
| -You can manage security context constraints (SCCs) in your instance as normal API objects using the OpenShift CLI (`oc`). |
| 9 | +You can manage security context constraints (SCCs) in your instance as normal API objects by using the OpenShift CLI (`oc`). |
9 | 10 |
|
10 | 11 | ifdef::openshift-enterprise,openshift-webscale,openshift-origin[]
|
11 | 12 | [NOTE]
|
@@ -103,35 +104,39 @@ the default SCCs.
|
103 | 104 | //other than priority, users, groups, labels, and annotations.
|
104 | 105 | ====
|
105 | 106 |
|
106 |
| -[id="deleting-security-context-constraints_{context}"] |
107 |
| -== Deleting security context constraints |
| 107 | +[id="updating-security-context-constraints_{context}"] |
| 108 | +== Updating security context constraints |
108 | 109 |
|
109 |
| -To delete an SCC: |
| 110 | +If your custom SCC no longer satisfies your application workloads requirements, you can update your SCC by using the OpenShift CLI (`oc`). |
| 111 | + |
| 112 | +To update an existing SCC: |
110 | 113 |
|
111 | 114 | [source,terminal]
|
112 | 115 | ----
|
113 |
| -$ oc delete scc <scc_name> |
| 116 | +$ oc edit scc <scc_name> |
114 | 117 | ----
|
115 | 118 |
|
116 |
| -[NOTE] |
| 119 | +[IMPORTANT] |
117 | 120 | ====
|
118 |
| -If you delete a default SCC, it will regenerate when you restart the cluster. |
| 121 | +To preserve customized SCCs during upgrades, do not edit settings on |
| 122 | +the default SCCs. |
| 123 | +//other than priority, users, groups, labels, and annotations. |
119 | 124 | ====
|
120 | 125 |
|
121 |
| -[id="updating-security-context-constraints_{context}"] |
122 |
| -== Updating security context constraints |
| 126 | +[id="deleting-security-context-constraints_{context}"] |
| 127 | +== Deleting security context constraints |
123 | 128 |
|
124 |
| -To update an existing SCC: |
| 129 | +If you no longer require your custom SCC, you can delete the SCC by using the OpenShift CLI (`oc`). |
| 130 | + |
| 131 | +To delete an SCC: |
125 | 132 |
|
126 | 133 | [source,terminal]
|
127 | 134 | ----
|
128 |
| -$ oc edit scc <scc_name> |
| 135 | +$ oc delete scc <scc_name> |
129 | 136 | ----
|
130 | 137 |
|
131 |
| -[NOTE] |
| 138 | +[IMPORTANT] |
132 | 139 | ====
|
133 |
| -To preserve customized SCCs during upgrades, do not edit settings on |
134 |
| -the default SCCs. |
135 |
| -//other than priority, users, groups, labels, and annotations. |
| 140 | +Do not delete default SCCs. If you delete a default SCC, it is regenerated by the Cluster Version Operator. |
136 | 141 | ====
|
137 | 142 | endif::openshift-enterprise,openshift-webscale,openshift-origin[]
|
0 commit comments