Zones return the list of zones for which there's at least 1 instance registered in the ring. They are guaranteed to be sorted alphabetically.
()
| 532 | // Zones return the list of zones for which there's at least 1 instance registered |
| 533 | // in the ring. They are guaranteed to be sorted alphabetically. |
| 534 | func (i *Lifecycler) Zones() []string { |
| 535 | i.countersLock.RLock() |
| 536 | defer i.countersLock.RUnlock() |
| 537 | |
| 538 | return i.zones |
| 539 | } |
| 540 | |
| 541 | func (i *Lifecycler) loop(ctx context.Context) error { |
| 542 | // First, see if we exist in the cluster, update our state to match if we do, |
no outgoing calls