Update NetworkPolicy comments to reflect reality.

NetworkPolicy has been implemented with no distinction between nil and
empty Ports/From, and we don't intend to change that now.
This commit is contained in:
Dan Winship
2016-12-16 09:38:55 -05:00
parent 19b8be8b7d
commit 1940941dbb
4 changed files with 4 additions and 18 deletions

View File

@@ -921,7 +921,6 @@ func ValidateNetworkPolicySpec(spec *extensions.NetworkPolicySpec, fldPath *fiel
}
}
}
// TODO: Update From to be a pointer to slice as soon as auto-generation supports it.
for i, from := range ingress.From {
fromPath := ingressPath.Child("from").Index(i)
numFroms := 0