From 775e4bfe4499ed89d41e4a4cb3bb39f4b670aeed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CShauna=20Diaz=E2=80=9D?= Date: Wed, 28 Feb 2024 11:17:26 -0500 Subject: [PATCH] OSDOCS-9742: add view a NP to MicroShift --- _topic_maps/_topic_map_ms.yml | 2 ++ .../microshift-viewing-network-policy.adoc | 12 ++++++++++++ modules/nw-networkpolicy-view-cli.adoc | 9 ++++++--- 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 microshift_networking/microshift-network-policy/microshift-viewing-network-policy.adoc diff --git a/_topic_maps/_topic_map_ms.yml b/_topic_maps/_topic_map_ms.yml index 18737a8b08..bb1dcf2723 100644 --- a/_topic_maps/_topic_map_ms.yml +++ b/_topic_maps/_topic_map_ms.yml @@ -413,6 +413,8 @@ Topics: File: microshift-editing-network-policy - Name: Deleting network policies File: microshift-deleting-network-policy + - Name: Viewing network policies + File: microshift-viewing-network-policy - Name: Firewall configuration File: microshift-firewall - Name: Networking settings for fully disconnected hosts diff --git a/microshift_networking/microshift-network-policy/microshift-viewing-network-policy.adoc b/microshift_networking/microshift-network-policy/microshift-viewing-network-policy.adoc new file mode 100644 index 0000000000..f0ba875be4 --- /dev/null +++ b/microshift_networking/microshift-network-policy/microshift-viewing-network-policy.adoc @@ -0,0 +1,12 @@ +:_mod-docs-content-type: ASSEMBLY +[id="microshift-viewing-network-policy"] += Viewing a network policy +include::_attributes/common-attributes.adoc[] +include::_attributes/attributes-microshift.adoc[] +:context: microshift-viewing-network-policy + +toc::[] + +Use the following procedure to view a network policy for a namespace. + +include::modules/nw-networkpolicy-view-cli.adoc[leveloffset=+1] \ No newline at end of file diff --git a/modules/nw-networkpolicy-view-cli.adoc b/modules/nw-networkpolicy-view-cli.adoc index 331257d152..7ac163b925 100644 --- a/modules/nw-networkpolicy-view-cli.adoc +++ b/modules/nw-networkpolicy-view-cli.adoc @@ -18,17 +18,19 @@ endif::[] You can examine the {name} policies in a namespace. -ifndef::multi[] +ifndef::multi,microshift[] [NOTE] ==== If you log in with a user with the `cluster-admin` role, then you can view any network policy in the cluster. ==== -endif::multi[] +endif::multi,microshift[] .Prerequisites * You installed the OpenShift CLI (`oc`). +ifndef::microshift[] * You are logged in to the cluster with a user with `{role}` privileges. +endif::microshift[] * You are working in the namespace where the {name} policy exists. .Procedure @@ -90,8 +92,9 @@ endif::multi[] :!name: :!role: - +ifndef::microshift[] [NOTE] ==== 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. ==== +endif::microshift[] \ No newline at end of file