add tracing in higress-config configmap (#409)

This commit is contained in:
Jun
2023-07-04 19:59:11 +08:00
committed by GitHub
parent 3fd37abab7
commit b65446fa25
5 changed files with 679 additions and 2 deletions

View File

@@ -82,3 +82,9 @@ func MessageToGoGoStruct(msg proto.Message) (*types.Struct, error) {
func CreateServiceFQDN(namespace, name string) string {
return fmt.Sprintf("%s.%s.svc.%s", name, namespace, DefaultDomainSuffix)
}
func BuildPatchStruct(config string) *types.Struct {
val := &types.Struct{}
_ = jsonpb.Unmarshal(strings.NewReader(config), val)
return val
}