Skip to content

Commit 43df434

Browse files
authored
Merge pull request #44824 from rh-max/srvls-change-label-manual-to-part-of
[SRVKS-888]: Change the label used by Serverless
2 parents 6f08bb1 + 91c1bf3 commit 43df434

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

modules/serverless-ossm-setup-with-kourier.adoc

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,6 @@ $ oc apply -f <filename>
4646
----
4747

4848
. Create a network policy that permits traffic flow from Knative system pods to Knative services:
49-
.. Add the `serving.knative.openshift.io/system-namespace=true` label to the `knative-serving` namespace:
50-
+
51-
[source,terminal]
52-
----
53-
$ oc label namespace knative-serving serving.knative.openshift.io/system-namespace=true
54-
----
55-
.. Add the `serving.knative.openshift.io/system-namespace=true` label to the `knative-serving-ingress` namespace:
56-
+
57-
[source,terminal]
58-
----
59-
$ oc label namespace knative-serving-ingress serving.knative.openshift.io/system-namespace=true
60-
----
6149
.. For each namespace that you want to integrate with {SMProductShortName}, create a `NetworkPolicy` resource:
6250
+
6351
[source,yaml]
@@ -72,13 +60,32 @@ spec:
7260
- from:
7361
- namespaceSelector:
7462
matchLabels:
75-
serving.knative.openshift.io/system-namespace: "true"
63+
knative.openshift.io/part-of: "openshift-serverless"
7664
podSelector: {}
7765
policyTypes:
7866
- Ingress
7967
...
8068
----
8169
<1> Add the namespace that you want to integrate with {SMProductShortName}.
70+
+
71+
[NOTE]
72+
====
73+
The `knative.openshift.io/part-of: "openshift-serverless"` label was added in {ServerlessProductName} 1.22.0. If you are using {ServerlessProductName} 1.21.1 or earlier, add the `knative.openshift.io/part-of` label to the `knative-serving` and `knative-serving-ingress` namespaces.
74+
75+
Add the label to the `knative-serving` namespace:
76+
77+
[source,terminal]
78+
----
79+
$ oc label namespace knative-serving knative.openshift.io/part-of=openshift-serverless
80+
----
81+
82+
Add the label to the `knative-serving-ingress` namespace:
83+
84+
[source,terminal]
85+
----
86+
$ oc label namespace knative-serving-ingress knative.openshift.io/part-of=openshift-serverless
87+
----
88+
====
8289
.. Apply the `NetworkPolicy` resource:
8390
+
8491
[source,terminal]

0 commit comments

Comments
 (0)