Commit bfb8679
Timo Reimann
Overwrite service load-balancer ID on mismatch
This change causes the service load-balancer ID annotation to be
overwritten if it does not match the given load-balancer ID.
It is required to properly handle the case where the load-balancer is
deleted manually: in that case, CCM won't be able to look up the
load-balancer and create a new one. Without updating the ID, however,
subsequent reconciliations will continue to use the old ID, fail to find
one, try to create a new but fail because a load-balancer with the given
name (based on the service UUID) already exists. At this point, the
reconciliation attempt will loop endlessly.
We need to break the cycle by annotating the ID of the newly created
load-balancer.1 parent 58a3698 commit bfb8679
File tree
3 files changed
+23
-12
lines changed- cloud-controller-manager/do
3 files changed
+23
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
| 364 | + | |
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3412 | 3412 | | |
3413 | 3413 | | |
3414 | 3414 | | |
3415 | | - | |
3416 | | - | |
3417 | | - | |
3418 | | - | |
3419 | | - | |
3420 | | - | |
3421 | | - | |
3422 | | - | |
3423 | | - | |
3424 | | - | |
| 3415 | + | |
| 3416 | + | |
| 3417 | + | |
| 3418 | + | |
| 3419 | + | |
| 3420 | + | |
| 3421 | + | |
| 3422 | + | |
| 3423 | + | |
| 3424 | + | |
| 3425 | + | |
3425 | 3426 | | |
3426 | 3427 | | |
3427 | 3428 | | |
| |||
3666 | 3667 | | |
3667 | 3668 | | |
3668 | 3669 | | |
3669 | | - | |
| 3670 | + | |
| 3671 | + | |
| 3672 | + | |
3670 | 3673 | | |
3671 | 3674 | | |
3672 | 3675 | | |
| |||
3691 | 3694 | | |
3692 | 3695 | | |
3693 | 3696 | | |
| 3697 | + | |
3694 | 3698 | | |
3695 | 3699 | | |
3696 | 3700 | | |
| |||
3821 | 3825 | | |
3822 | 3826 | | |
3823 | 3827 | | |
| 3828 | + | |
| 3829 | + | |
| 3830 | + | |
3824 | 3831 | | |
3825 | 3832 | | |
3826 | 3833 | | |
| |||
0 commit comments