If disable_hetzner_csi = false then csi_version will always be set (either from hetzner_csi_version or using the latest github release).
If disable_hetzner_csi = true then csi_version will not be automatically be inferred from the latest github release. This is why rendering the templatefile fails, even though the file is not needed and ignored. This PR fixes rendering the template using coalesce. This way the file will be generated but is still not used since csi is disabled.
This PR fixes https://github.com/kube-hetzner/terraform-hcloud-kube-hetzner/issues/1470 which was introduced with https://github.com/kube-hetzner/terraform-hcloud-kube-hetzner/pull/1417.
disable_hetzner_csi = false
thencsi_version
will always be set (either fromhetzner_csi_version
or using the latest github release).disable_hetzner_csi = true
thencsi_version
will not be automatically be inferred from the latest github release. This is why rendering thetemplatefile
fails, even though the file is not needed and ignored. This PR fixes rendering the template usingcoalesce
. This way the file will be generated but is still not used since csi is disabled.