Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix hcloud-csi.yaml if csi is disabled (disable_hetzner_csi) #1471

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

UBaggeler
Copy link
Contributor

This PR fixes #1470 which was introduced with #1417.

  • 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.

@olexiyb
Copy link
Contributor

olexiyb commented Sep 8, 2024

I came across the same issue
I did next
1d5a672

@UBaggeler
Copy link
Contributor Author

I came across the same issue I did next 1d5a672

Yes, that's the other way to solve it.

init.tf Outdated Show resolved Hide resolved
@mysticaltech mysticaltech merged commit 0c87d28 into kube-hetzner:master Sep 23, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Terraform failing if csi is disabled (disable_hetzner_csi) and hetzner_csi_version not set
3 participants