platform9 / cctl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Delete machine fails if node name is not the machine hostname

dlipovetsky opened this issue · comments

Delete machine assumes the node is registered with its hostname (

stdOut, stdErr, err := targetMachineClient.RunCommand("/opt/bin/kubectl --kubeconfig=/etc/kubernetes/admin.conf get node --selector kubernetes.io/hostname=$(hostname -f) -oname")
)