cloudstack-kubernetes-provider icon indicating copy to clipboard operation
cloudstack-kubernetes-provider copied to clipboard

Strip domain from node.Name before matching with vm names

Open hrak opened this issue 2 years ago • 0 comments

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)

hrak avatar May 05 '23 06:05 hrak