Release 1.1 (#412)

This commit is contained in:
澄潭
2023-07-07 17:53:44 +08:00
committed by GitHub
parent 2a97921d2b
commit bee03a37a4
7 changed files with 19 additions and 18 deletions

View File

@@ -293,8 +293,9 @@ func (c *controller) HasSynced() bool {
}
func (c *controller) List() []config.Config {
c.mutex.RLock()
out := make([]config.Config, 0, len(c.ingresses))
c.mutex.RUnlock()
for _, raw := range c.ingressInformer.GetStore().List() {
ing, ok := raw.(*ingress.Ingress)
if !ok {