AlinsRan commented on issue #674:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/674#issuecomment-1138205212

   > @AlinsRan thanks.
   > 
   > Currently we use the following methods to generate the upstream name.
   > 
   > 
https://github.com/apache/apisix-ingress-controller/blob/49dd015085a68ce4c26ba60076ef281ed71af2aa/pkg/types/apisix/v1/types.go#L425-L450
   > 
   > Then generate its ID.
   > 
   > 
https://github.com/apache/apisix-ingress-controller/blob/49dd015085a68ce4c26ba60076ef281ed71af2aa/pkg/id/idgen.go#L25-L39
   > 
   > Maintaining the mapping relationship between Service and Upstream, I think 
it is a better choice.
   > 
   > Here we need to clear the node field of Upstream in APISIX after 
discovering that the service has been deleted
   
   I understand, After the SVC is deleted, it should also be written to 
`apisix` when it is created.
   
   The question is how to maintain this relationship.
   


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

Reply via email to