Goend commented on issue #2766:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/2766#issuecomment-4609743837

   It's possible that I didn't describe it clearly. I simply want to add events 
every time an Ingress resource completes synchronization, similar to this:
   
   ```
   [root@node-1 ~]# kubectl describe ingress -n openstack roller 
   Name:             roller
   Labels:           app.kubernetes.io/managed-by=Helm
   Namespace:        xx
   Address:          10.20.0.7,10.20.0.8,10.20.0.9
   Ingress Class:    <none>
   Default backend:  <default>
   TLS:
     SNI routes roller,roller.openstack,roller.openstack.svc.cluster.local
   Rules:
     Host        Path  Backends
     ----        ----  --------
     *           
                 /ecas   roller-dashboard:80 
(10.232.3.214:80,10.232.4.230:80,10.232.5.202:80)
   Annotations:  ingress.kubernetes.io/affinity: cookie
                 ingress.kubernetes.io/configuration-snippet: rewrite ^/ecas$ 
/ecas/ break;
                 ingress.kubernetes.io/custom-http-errors: 404,500
                 ingress.kubernetes.io/proxy-body-size: 0
                 ingress.kubernetes.io/proxy-read-timeout: 1800
                 ingress.kubernetes.io/proxy-redirect-from: http://
                 ingress.kubernetes.io/proxy-redirect-to: https://
                 ingress.kubernetes.io/session-cookie-hash: sha1
                 ingress.kubernetes.io/session-cookie-name: escookie
                 meta.helm.sh/release-name: roller-dashboard
                 meta.helm.sh/release-namespace: openstack
                 xx: xx
   Events:
     Type    Reason  Age               From                      Message
     ----    ------  ----              ----                      -------
     Normal  Sync    2s (x3 over 46h)  nginx-ingress-controller  Scheduled for 
sync
     Normal  Sync    2s (x3 over 46h)  nginx-ingress-controller  Scheduled for 
sync
     Normal  Sync    2s (x2 over 46h)  nginx-ingress-controller  Scheduled for 
sync
   ```
   
   Something like generating this kind of event. Additionally, if ADC 
synchronization fails, it would be best to have corresponding events to alert 
users, so as to avoid situations where configuration delivery remains 
unsuccessful without anyone noticing.


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