mirror of
https://github.com/alibaba/higress.git
synced 2026-06-01 08:37:26 +08:00
Support new features: HTTP3/IPv6/ProxyProtocol/OpenTelemetry (#1272)
This commit is contained in:
@@ -29,6 +29,8 @@ import (
|
||||
_struct "github.com/golang/protobuf/ptypes/struct"
|
||||
"istio.io/istio/pkg/cluster"
|
||||
"k8s.io/apimachinery/pkg/types"
|
||||
|
||||
. "github.com/alibaba/higress/pkg/ingress/log"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -105,6 +107,9 @@ func CreateServiceFQDN(namespace, name string) string {
|
||||
|
||||
func BuildPatchStruct(config string) *_struct.Struct {
|
||||
val := &_struct.Struct{}
|
||||
_ = jsonpb.Unmarshal(strings.NewReader(config), val)
|
||||
err := jsonpb.Unmarshal(strings.NewReader(config), val)
|
||||
if err != nil {
|
||||
IngressLog.Errorf("build patch struct failed, err:%v", err)
|
||||
}
|
||||
return val
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user