Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update endpoint IP selection order based on address type found #61

Merged

Conversation

rahulbabu95
Copy link
Member

Issue #, if available:

Description of changes:
Currently, we set the etcd endpoint based on the address set on machine status and give preference to InternalIP/DNS over externalIP/DNS. CAPV introduced a change in which they set the machine address of type InternalIP to be the vm name. This breaks the endpoint check logic we currently have as we would not have a DNS entry for the corresponding endpoint. In this change, we record all the address types found in the machine status and take a precedence based approach in which DNS entries take precedence over IPs and external type takes precedence over internal. We are excluding HostName address type as it would again fail in our connection check.

Testing:
Built the controller and tested manually to be able to create clusters with CAPV 1.9.3

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Signed-off-by: Rahul Ganesh <rahulgab@amazon.com>
@rahulbabu95 rahulbabu95 marked this pull request as ready for review April 20, 2024 01:57
Copy link

@chrisdoherty4 chrisdoherty4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@rahulbabu95
Copy link
Member Author

/approve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants