-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make bootstrap IP discovery backwards compatible with previous assump…
…tions Before this patch, the new bootstrap IP discovery mechanism would fail bootstrapping if no IP could be intelligently discovered. A side-effect of that is effectively validating the machine network CIDR by asserting the bootstrap IPs ability to be discovered within it. Because there may still be edge cases where we fail to detect but where the old assumption to choose the "first IP" would still work, we could introduce an undue burden to fix all existing uses of machine network CIDR even when our fallback could continue to work in those cases. This patch adds a fallback behavior so that when intelligent discovery fails, the first listed IP is selected with a warning, preserving the original discovery behavior. This does effectively mean that clusters can still fail to bootstrap if even the first IP assumption is wrong, but we can presumably use those failures to further improve detection. A worthwhile future improvement would be to find a way to more loudly and clearly surface to the user when we're blindly guessing about the IP, as the resulting downstream failure may obfuscate the source of failure if bootkube logs are lost.
- Loading branch information
1 parent
dbd49cc
commit a79e547
Showing
3 changed files
with
43 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters