Skip to content

Commit 0fdecae

Browse files
authored
Merge pull request #35852 from bergerhoffer/pr-33484
Add warning about runlevels.
2 parents 6486c01 + fd53171 commit 0fdecae

4 files changed

+5
-39
lines changed

modules/cnf-installing-the-operators.adoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ metadata:
9898
annotations:
9999
workload.openshift.io/allowed: management
100100
labels:
101-
openshift.io/run-level: "1"
102101
openshift.io/cluster-monitoring: "true"
103102
104103
EOF
@@ -193,8 +192,6 @@ metadata:
193192
name: openshift-sriov-network-operator
194193
annotations:
195194
workload.openshift.io/allowed: management
196-
labels:
197-
openshift.io/run-level: "1"
198195
199196
EOF
200197
----

modules/cnf-installing-the-performance-addon-operator.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ metadata:
3535
name: openshift-performance-addon-operator
3636
annotations:
3737
workload.openshift.io/allowed: management
38-
labels:
39-
openshift.io/run-level: "1"
4038
----
4139

4240
.. Create the namespace by running the following command:

modules/nw-sriov-installing-operator.adoc

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22
//
33
// * networking/hardware_networks/installing-sriov-operator.adoc
44

5-
ifeval::["{product-version}" == "4.2"]
6-
:run-level:
7-
endif::[]
8-
ifeval::["{product-version}" == "4.3"]
9-
:run-level:
10-
endif::[]
11-
ifeval::["{product-version}" == "4.4"]
12-
:run-level:
13-
endif::[]
14-
155
[id="installing-sr-iov-operator_{context}"]
166
= Installing SR-IOV Network Operator
177

@@ -41,10 +31,6 @@ metadata:
4131
name: openshift-sriov-network-operator
4232
annotations:
4333
workload.openshift.io/allowed: management
44-
ifdef::run-level[]
45-
labels:
46-
openshift.io/run-level: "1"
47-
endif::run-level[]
4834
EOF
4935
----
5036

@@ -134,22 +120,6 @@ You must create the operator group by using the CLI.
134120

135121
.. In the *Name* field, enter `openshift-sriov-network-operator`, and then click *Create*.
136122

137-
ifdef::run-level[]
138-
.. In the *Filter by name* field, enter `openshift-sriov-network-operator`.
139-
140-
.. From the list of results, click `openshift-sriov-network-operator`, and then click *YAML*.
141-
142-
.. Update the namespace by adding the following stanza to the namespace definition:
143-
+
144-
[source,yaml]
145-
----
146-
labels:
147-
openshift.io/run-level: "1"
148-
----
149-
150-
.. Click *Save*.
151-
endif::run-level[]
152-
153123
. Install the SR-IOV Network Operator:
154124

155125
.. In the {product-title} web console, click *Operators* -> *OperatorHub*.
@@ -179,7 +149,3 @@ If the operator does not appear as installed, to troubleshoot further:
179149
* Inspect the *Operator Subscriptions* and *Install Plans* tabs for any failure or errors under *Status*.
180150
* Navigate to the *Workloads* -> *Pods* page and check the logs for pods in the
181151
`openshift-sriov-network-operator` project.
182-
183-
ifdef::run-level[]
184-
:!run-level:
185-
endif::[]

modules/security-context-constraints-about.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ Security context constraints allow an administrator to control:
2121
* The usage of volume types
2222
* The configuration of allowable `seccomp` profiles
2323

24+
[IMPORTANT]
25+
====
26+
Do not set the `openshift.io/run-level` label on any namespaces in {product-title}. This label is for use by internal {product-title} components to manage the startup of major API groups, such as the Kubernetes API server and OpenShift API server. If the `openshift.io/run-level` label is set, no SCCs are applied to pods in that namespace, causing any workloads running in that namespace to be highly privileged.
27+
====
28+
2429
[id="default-sccs_{context}"]
2530
== Default security context constraints
2631

0 commit comments

Comments
 (0)