hcloud-cloud-controller-manager
hcloud-cloud-controller-manager copied to clipboard
feat: Event when Robot Node is removed because name changed
TL;DR
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.
https://github.com/hetznercloud/hcloud-cloud-controller-manager/blob/2f339d2c146d3a94ef184e025976d03cca674461/hcloud/instances_util.go#L92-L95
This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs.