mirror of
https://github.com/alibaba/higress.git
synced 2026-06-10 05:07:30 +08:00
upgrade to istio 1.19 (#1211)
Co-authored-by: CH3CHO <ch3cho@qq.com> Co-authored-by: rinfx <893383980@qq.com>
This commit is contained in:
@@ -435,7 +435,7 @@ func (w *watcher) getSubscribeCallback(groupName string, serviceName string) fun
|
||||
}
|
||||
|
||||
func (w *watcher) generateServiceEntry(host string, services []model.Instance) *v1alpha3.ServiceEntry {
|
||||
portList := make([]*v1alpha3.Port, 0)
|
||||
portList := make([]*v1alpha3.ServicePort, 0)
|
||||
endpoints := make([]*v1alpha3.WorkloadEntry, 0)
|
||||
|
||||
for _, service := range services {
|
||||
@@ -443,7 +443,7 @@ func (w *watcher) generateServiceEntry(host string, services []model.Instance) *
|
||||
if service.Metadata != nil && service.Metadata["protocol"] != "" {
|
||||
protocol = common.ParseProtocol(service.Metadata["protocol"])
|
||||
}
|
||||
port := &v1alpha3.Port{
|
||||
port := &v1alpha3.ServicePort{
|
||||
Name: protocol.String(),
|
||||
Number: uint32(service.Port),
|
||||
Protocol: protocol.String(),
|
||||
|
||||
@@ -322,7 +322,7 @@ func (w *watcher) getSubscribeCallback(groupName string, serviceName string) fun
|
||||
}
|
||||
|
||||
func (w *watcher) generateServiceEntry(host string, services []model.SubscribeService) *v1alpha3.ServiceEntry {
|
||||
portList := make([]*v1alpha3.Port, 0)
|
||||
portList := make([]*v1alpha3.ServicePort, 0)
|
||||
endpoints := make([]*v1alpha3.WorkloadEntry, 0)
|
||||
|
||||
for _, service := range services {
|
||||
@@ -332,7 +332,7 @@ func (w *watcher) generateServiceEntry(host string, services []model.SubscribeSe
|
||||
} else {
|
||||
service.Metadata = make(map[string]string)
|
||||
}
|
||||
port := &v1alpha3.Port{
|
||||
port := &v1alpha3.ServicePort{
|
||||
Name: protocol.String(),
|
||||
Number: uint32(service.Port),
|
||||
Protocol: protocol.String(),
|
||||
|
||||
Reference in New Issue
Block a user