mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Implement multi-port Endpoints
This is a part of multi-port services.
This commit is contained in:
@@ -86,7 +86,7 @@ func init() {
|
||||
}
|
||||
},
|
||||
func(obj *Endpoints) {
|
||||
if obj.Protocol == "" {
|
||||
if obj.Protocol == "" && len(obj.Endpoints) > 0 {
|
||||
obj.Protocol = "TCP"
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user