Skip to content

Commit d099e4b

Browse files
authored
typo fix nw-networkpolicy-about.adoc
While copy and pasting the example policy from the documentation, the policy creation was failed with the below error, `Error from server (BadRequest): error when creating "host.yaml": NetworkPolicy in version "v1" cannot be handled as a NetworkPolicy: json: cannot unmarshal string into Go struct field LabelSelector.spec.ingress.from.namespaceSelector.matchLabels of type map[string]string` There was a indentation error in spec.ingress.from.namespaceSelector.matchLabels policy-group.network.openshift.io/ingress:"" policy-group.network.openshift.io/host-network:""
1 parent ffd2a72 commit d099e4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/nw-networkpolicy-about.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ spec:
144144
- from:
145145
- namespaceSelector:
146146
matchLabels:
147-
policy-group.network.openshift.io/ingress:""<1>
147+
policy-group.network.openshift.io/ingress: ""<1>
148148
podSelector: {}
149149
policyTypes:
150150
- Ingress
@@ -168,7 +168,7 @@ spec:
168168
- from:
169169
- namespaceSelector:
170170
matchLabels:
171-
policy-group.network.openshift.io/host-network:""
171+
policy-group.network.openshift.io/host-network: ""
172172
podSelector: {}
173173
policyTypes:
174174
- Ingress

0 commit comments

Comments
 (0)