mfordjody commented on code in PR #892:
URL: https://github.com/apache/dubbo-go-pixiu/pull/892#discussion_r3004299601
##########
controllers/internal/controller/gateway_controller.go:
##########
@@ -529,18 +531,80 @@ func (r *GatewayReconciler) ensureGatewayConfigMap(ctx
context.Context, gateway
isGatewayPolicy := policy.Spec.TargetRef.Kind ==
"Gateway" &&
string(policy.Spec.TargetRef.Name) ==
gateway.Name
+ r.Log.Info("processing cluster policy", "policy",
policy.Name, "isGatewayPolicy", isGatewayPolicy)
+
if isGatewayPolicy {
for j := range policy.Spec.ClusterRef {
clusterConfig :=
&policy.Spec.ClusterRef[j]
clusterConfigMap[clusterConfig.Name] =
clusterConfig
+ r.Log.Info("added cluster config",
"clusterName", clusterConfig.Name, "endpointCount",
len(clusterConfig.Endpoints))
}
} else {
for j := range policy.Spec.ServiceRef {
serviceConfig :=
&policy.Spec.ServiceRef[j]
serviceConfigMap[serviceConfig.Name] =
serviceConfig
+ r.Log.Info("added service config",
"serviceName", serviceConfig.Name, "endpointCount",
len(serviceConfig.Endpoints))
}
}
}
+
+ r.Log.Info("cluster policy maps", "clusterConfigCount",
len(clusterConfigMap), "serviceConfigCount", len(serviceConfigMap))
+
+ for _, cluster := range pixiuConfig.StaticResources.Clusters {
+ r.Log.Info("generated cluster", "name", cluster.Name,
"endpointCount", len(cluster.Endpoints))
+ }
+
+ for _, cluster := range pixiuConfig.StaticResources.Clusters {
Review Comment:
done.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]