Skip to content

Commit 4f5ab1a

Browse files
authored
Merge pull request #72311 from ShaunaDiaz/OSDOCS-9742
OSDOCS-9742: add view a NP to MicroShift
2 parents f5741bc + 1834c60 commit 4f5ab1a

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

_topic_maps/_topic_map_ms.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ Topics:
413413
File: microshift-editing-network-policy
414414
- Name: Deleting network policies
415415
File: microshift-deleting-network-policy
416+
- Name: Viewing network policies
417+
File: microshift-viewing-network-policy
416418
- Name: Firewall configuration
417419
File: microshift-firewall
418420
- Name: Networking settings for fully disconnected hosts
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
[id="microshift-viewing-network-policy"]
3+
= Viewing a network policy
4+
include::_attributes/common-attributes.adoc[]
5+
include::_attributes/attributes-microshift.adoc[]
6+
:context: microshift-viewing-network-policy
7+
8+
toc::[]
9+
10+
Use the following procedure to view a network policy for a namespace.
11+
12+
include::modules/nw-networkpolicy-view-cli.adoc[leveloffset=+1]

modules/nw-networkpolicy-view-cli.adoc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,19 @@ endif::[]
1818

1919
You can examine the {name} policies in a namespace.
2020

21-
ifndef::multi[]
21+
ifndef::multi,microshift[]
2222
[NOTE]
2323
====
2424
If you log in with a user with the `cluster-admin` role, then you can view any network policy in the cluster.
2525
====
26-
endif::multi[]
26+
endif::multi,microshift[]
2727

2828
.Prerequisites
2929

3030
* You installed the OpenShift CLI (`oc`).
31+
ifndef::microshift[]
3132
* You are logged in to the cluster with a user with `{role}` privileges.
33+
endif::microshift[]
3234
* You are working in the namespace where the {name} policy exists.
3335
3436
.Procedure
@@ -90,8 +92,9 @@ endif::multi[]
9092
:!name:
9193
:!role:
9294

93-
95+
ifndef::microshift[]
9496
[NOTE]
9597
====
9698
If you log in to the web console with `cluster-admin` privileges, you have a choice of viewing a network policy in any namespace in the cluster directly in YAML or from a form in the web console.
9799
====
100+
endif::microshift[]

0 commit comments

Comments
 (0)