AlexStocks commented on code in PR #1314:
URL: https://github.com/apache/dubbo-admin/pull/1314#discussion_r2296972139


##########
pkg/core/resource/apis/mesh/v1alpha1/conditionroute_types.go:
##########
@@ -97,3 +117,12 @@ func NewConditionRouteResource(name string, mesh string, 
apiVersion string) *Con
                Mesh: mesh,
        }
 }
+
+func NewConditionRouteResource() coremodel.Resource {
+       return &ConditionRouteResource{
+               TypeMeta: metav1.TypeMeta{
+                       Kind:       string(ConditionRouteKind),
+                       APIVersion: "v1alpha1",

Review Comment:
   我看你上面也用了这个 常量,写死成一个 const 吧



-- 
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]

Reply via email to