flatcar-linux-update-operator
flatcar-linux-update-operator copied to clipboard
update agent fails to watch for ok-to-reboot label
With following error:
W0206 12:37:02.081765 1 agent.go:152] error waiting for an ok-to-reboot: waiting for annotation "flatcar-linux-update.v1.flatcar-linux.net/reboot-ok" failed: unhandled watch case for watch.Event{Type:"ERROR", Object:(*v1.Status)(0xc00024abe0)}
Reading the code, this is clearly a bug, as https://github.com/kinvolk/flatcar-linux-update-operator/blob/4036c440e59e886a6ee94af562ec3374d3292ba9/pkg/agent/agent.go#L303 assumes, that update should happen within 24 hours from starting the watch. However, if no updates are posted within 24 hours, this watch will be timing out.