/kind feature
Describe the solution you'd like
When the hcloud token is invalid / got invalidad, then we cannot act with the HCloud API (anymore).
Once the token is updated to the correct one, it would be possible though.
We should ensure that the HCloudMachines react on a change in the secret immediately. This is especially important, since the objects don't reconcile at all anymore, once we detected an unauthorized error - because there is usually no immediate change (MachineHealthChecks regularly delete the machines though).
We should test this in a real-world setup and ensure that this works properly:
- Have a healthy cluster running.
- Invalidate the hcloud token by removing it from the Hetzner UI.
- Scale the cluster to request more virtual servers.
- Add a new token via Hetzner UI and replace it in the secret.
- Ensure that HCloudMachines immediately reconcile and pick up the new token.
/kind feature
Describe the solution you'd like
When the hcloud token is invalid / got invalidad, then we cannot act with the HCloud API (anymore).
Once the token is updated to the correct one, it would be possible though.
We should ensure that the HCloudMachines react on a change in the secret immediately. This is especially important, since the objects don't reconcile at all anymore, once we detected an unauthorized error - because there is usually no immediate change (MachineHealthChecks regularly delete the machines though).
We should test this in a real-world setup and ensure that this works properly: