Clarify NetworkPolicy policyTypes in docs

Update the NetWorkPolicy `policyTypes` definition in the spec documentation so its
clear there are only three options: "Ingress", "Egress", and
"Ingress,Egress".
This commit is contained in:
mattjmcnaughton
2019-02-12 09:54:12 -05:00
parent 120bcd7ddd
commit 41f05222e1
8 changed files with 9 additions and 9 deletions

View File

@@ -78,7 +78,7 @@ type NetworkPolicySpec struct {
Egress []NetworkPolicyEgressRule
// List of rule types that the NetworkPolicy relates to.
// Valid options are Ingress, Egress, or Ingress,Egress.
// Valid options are "Ingress", "Egress", or "Ingress,Egress".
// If this field is not specified, it will default based on the existence of Ingress or Egress rules;
// policies that contain an Egress section are assumed to affect Egress, and all policies
// (whether or not they contain an Ingress section) are assumed to affect Ingress.