You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "lilijreey (via GitHub)" <gi...@apache.org> on 2026/02/03 11:37:13 UTC

[I] request help: a strange bug need help [apisix-ingress-controller]

lilijreey opened a new issue, #2713:
URL: https://github.com/apache/apisix-ingress-controller/issues/2713

   ### Issue description
   
   ```
   import (
   	v1 "github.com/apache/apisix-ingress-controller/pkg/types/apisix/v1" //version 1.7
   )
   
   type AdminApiRoute struct {
   	v1.Route   `json:",inline"`
   	CreateTime int `json:"create_time"`
   	UpdateTime int `json:"update_time"`
   }
   
   route := AdminApiRoute {
              /* Route data ...*/
             CreateTime:1000,
             UpdateTime:1000}
   
   js, err := json.Marsh(route)
   ```
   The js loss CreateTIme and UpdateTime fields, ??? Why???
   
   ### Environment
   
   ingress-cotroller version 1.7
   


-- 
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@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] request help: a strange bug need help [apisix-ingress-controller]

Posted by "lilijreey (via GitHub)" <gi...@apache.org>.
lilijreey commented on issue #2713:
URL: https://github.com/apache/apisix-ingress-controller/issues/2713#issuecomment-3841125437

   because v1.Route  redefine json.Marsh,   then call json.Marsh(AdminApiRoute) this equal to json.Marsh(AdminApiRoute.Route)


-- 
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@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] request help: a strange bug need help [apisix-ingress-controller]

Posted by "lilijreey (via GitHub)" <gi...@apache.org>.
lilijreey closed issue #2713: request help: a strange bug need help
URL: https://github.com/apache/apisix-ingress-controller/issues/2713


-- 
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@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org