You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/04/22 05:13:48 UTC
[GitHub] [dubbo-go] AlexStocks commented on a diff in pull request #1853: Fix: xds enhancement
AlexStocks commented on code in PR #1853:
URL: https://github.com/apache/dubbo-go/pull/1853#discussion_r855772262
##########
registry/xds/registry.go:
##########
@@ -60,23 +60,24 @@ func getCategory(url *common.URL) string {
return category
}
+// getServiceName return serviceName $(providers_or_consumers):$(interfaceName)
func getServiceName(url *common.URL) string {
var buffer bytes.Buffer
buffer.Write([]byte(getCategory(url)))
appendParam(&buffer, url, constant.InterfaceKey)
- appendParam(&buffer, url, constant.VersionKey)
- appendParam(&buffer, url, constant.GroupKey)
return buffer.String()
}
+// getSubscribeName returns subscribeName is providers:$(interfaceName)
func getSubscribeName(url *common.URL) string {
var buffer bytes.Buffer
buffer.Write([]byte(common.DubboNodes[common.PROVIDER]))
appendParam(&buffer, url, constant.InterfaceKey)
- appendParam(&buffer, url, constant.VersionKey)
- appendParam(&buffer, url, constant.GroupKey)
+ // We would not append group or version to this name, as istio ecosystem only cares about hostname during cds.
+ // The subscribe name is to find real hostName only.
+ // Group or version are managed by traffic policy, not dubbo-go.
Review Comment:
during cds 没读懂
The subscribe name is to find real hostName only. = ‘The subscribe name is used to find the real hostName.’
not dubbo-go 不明白嘛意思
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org