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 external etcd patch to use the right address type #3139

Merged
merged 2 commits into from
May 2, 2024

Conversation

rahulbabu95
Copy link
Member

Issue #, if available:
CAPV introduced a new change in v1.9.x where they set the internalIP address type to the host name. This broke how our etcd endpoint used to select IP for it's endpoint as we were picking the host name now instead of the actual IP. This fix set the right address type on the etcd machine. However, our CAPI patch has a similar logic for selecting the IP to do a etcdadm join ... to join the bootsrapped etcd cluster. So whenever the other etcd peers are trying to join an existing etcdcluster the join command fails as it is using the host-name instead of actual IP. Fix the logic in our external etcd support patch on CAPI to actually look for all address types set on the machine and use the same precedence that's being used by the etcdadm-controller.

Description of changes:

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

@eks-distro-bot eks-distro-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 2, 2024
@d8660091
Copy link
Member

d8660091 commented May 2, 2024

/lgtm

@rahulbabu95
Copy link
Member Author

/approve

@eks-distro-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rahulbabu95

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@eks-distro-bot eks-distro-bot merged commit e82ea2a into aws:main May 2, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants