Fix Service type to handle port properly

This commit is contained in:
Antoine Pelisse
2019-01-23 21:47:31 -08:00
parent 839864d03b
commit c89ad0aa71

View File

@@ -3450,6 +3450,9 @@ type ServiceSpec struct {
// More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
// +patchMergeKey=port
// +patchStrategy=merge
// +listType=map
// +listMapKey=port
// +listMapKey=protocol
Ports []ServicePort `json:"ports,omitempty" patchStrategy:"merge" patchMergeKey:"port" protobuf:"bytes,1,rep,name=ports"`
// Route service traffic to pods with label keys and values matching this