Skip to content

Commit e37ec33

Browse files
authored
Merge pull request #38353 from jboxman-rh/gh-38299
GH#38299: Use correct example for egress firewall
2 parents 9196d10 + f7ebe8d commit e37ec33

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

modules/nw-egressnetworkpolicy-about.adoc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
ifeval::["{context}" == "configuring-egress-firewall-ovn"]
77
:ovn:
88
:kind: EgressFirewall
9+
:api: k8s.ovn.org/v1
910
endif::[]
1011
ifeval::["{context}" == "openshift-sdn-egress-firewall"]
1112
:openshift-sdn:
1213
:kind: EgressNetworkPolicy
14+
:api: network.openshift.io/v1
1315
endif::[]
1416

1517
[id="nw-egressnetworkpolicy-about_{context}"]
@@ -42,10 +44,10 @@ endif::ovn[]
4244
If your egress firewall includes a deny rule for `0.0.0.0/0`, access to your {product-title} API servers is blocked.
4345
To ensure that pods can continue to access the {product-title} API servers, you must include the IP address range that the API servers listen on in your egress firewall rules, as in the following example:
4446
45-
[source,yaml]
47+
[source,yaml,subs="attributes+"]
4648
----
47-
apiVersion: k8s.ovn.org/v1
48-
kind: EgressFirewall
49+
apiVersion: {api}
50+
kind: {kind}
4951
metadata:
5052
name: default
5153
namespace: <namespace> <1>
@@ -143,3 +145,6 @@ endif::[]
143145
ifdef::kind[]
144146
:!kind:
145147
endif::[]
148+
ifdef::api[]
149+
:!api:
150+
endif::[]

0 commit comments

Comments
 (0)