syself / cluster-api-provider-hetzner

Cluster API Provider Hetzner 🚀 Kubernetes Infrastructure as Software 🔧 Terraform/Kubespray/kOps alternative for running Kubernetes on Hetzner
https://caph.syself.com
Apache License 2.0
539 stars 51 forks source link

:seedling: Stop calling API when HCloudMachineTemplate status is set #1353

Closed janiskemper closed 2 weeks ago

janiskemper commented 2 weeks ago

What this PR does / why we need it: We call the HCloud API in every reconcile loop of the hcloudmachine_template controller. This is not necessary since the server type does not change for one template object. We can set it once when the status is empty and then don't have to set it while the status is not nil anymore.

TODOs: