Emit Warning event when we mark a Node for removal because the Node.Name does not match RobotServer.Name
Expected behavior
We recently introduced Kubernetes Events in https://github.com/hetznercloud/hcloud-cloud-controller-manager/pull/598. I tried to identify all code-paths that should emit a warning, but missed this one. Based on the actions taken after this code path (Node is removed from cluster) I think this warrants an event to make understanding this easier for cluster operators.
TL;DR
Emit Warning event when we mark a Node for removal because the
Node.Name
does not matchRobotServer.Name
Expected behavior
We recently introduced Kubernetes Events in https://github.com/hetznercloud/hcloud-cloud-controller-manager/pull/598. I tried to identify all code-paths that should emit a warning, but missed this one. Based on the actions taken after this code path (Node is removed from cluster) I think this warrants an event to make understanding this easier for cluster operators.
https://github.com/hetznercloud/hcloud-cloud-controller-manager/blob/2f339d2c146d3a94ef184e025976d03cca674461/hcloud/instances_util.go#L92-L95