Skip to content

Reconcile all relevant hcloudmachines when hcloud token got replaced #1972

@janiskemper

Description

@janiskemper

/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:

  1. Have a healthy cluster running.
  2. Invalidate the hcloud token by removing it from the Hetzner UI.
  3. Scale the cluster to request more virtual servers.
  4. Add a new token via Hetzner UI and replace it in the secret.
  5. Ensure that HCloudMachines immediately reconcile and pick up the new token.

Metadata

Metadata

Assignees

Labels

No labels
No labels
No fields configured for Task 🗒️.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions