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:
@@ -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
|
||||
|
Reference in New Issue
Block a user