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

@@ -127,7 +127,6 @@ func SetDefaults_ReplicaSet(obj *ReplicaSet) {
func SetDefaults_NetworkPolicy(obj *NetworkPolicy) {
// Default any undefined Protocol fields to TCP.
for _, i := range obj.Spec.Ingress {
// TODO: Update Ports to be a pointer to slice as soon as auto-generation supports it.
for _, p := range i.Ports {
if p.Protocol == nil {
proto := v1.ProtocolTCP