Part 1 of plural ports: Add protocol to Endpoints

This makes it easier to make the second step, which is moving endpoints
to a struct instead of a string.
This commit is contained in:
Tim Hockin
2015-02-18 14:43:37 -08:00
parent 6bbde837b8
commit 34eaa0dbd6
14 changed files with 139 additions and 6 deletions

View File

@@ -85,5 +85,10 @@ func init() {
obj.Type = SecretTypeOpaque
}
},
func(obj *Endpoints) {
if obj.Protocol == "" {
obj.Protocol = "TCP"
}
},
)
}