Skip to content

Conversation

@hrak
Copy link
Contributor

@hrak hrak commented May 5, 2023

Kubernetes node.Name can contain a FQDN instead of just a hostname in some setups. This PR makes sure to strip the domain part before trying to match with VM names from the CS API, since CloudStack does not have the concept of FQDN VM names.

It also adds some sanity checking in case verifyHosts is about to return an empty hostIDs array or empty networkID (this is how i ran into this issue)

Signed-off-by: Hans Rakers <h.rakers@global.leaseweb.com>
Copy link
Member

@vishesh92 vishesh92 left a comment

Choose a reason for hiding this comment

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

code lgtm. The changes shouldn't cause an issue either since VMs in ACS can't have . in their name.

@weizhouapache weizhouapache added this to the 1.1.0 milestone May 22, 2024
Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

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

code lgtm

@weizhouapache weizhouapache merged commit 1c5bd9e into apache:main May 28, 2024
@hrak hrak deleted the fix/k8s_fqdn branch September 6, 2024 12:57
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.

3 participants