Skip to content

Commit

Permalink
Merge pull request #1480 from WebSpider/2024/9/fix_hetzner_csi_values
Browse files Browse the repository at this point in the history
Fix regeneration and rendering of hetzner_csi_values
  • Loading branch information
mysticaltech committed Sep 22, 2024
2 parents 95334c3 + c4a105b commit 87df217
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions init.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ resource "null_resource" "kustomization" {
local.longhorn_values,
local.csi_driver_smb_values,
local.cert_manager_values,
local.rancher_values
local.rancher_values,
local.hetzner_csi_values
])
# Redeploy when versions of addons need to be updated
versions = join("\n", [
Expand Down Expand Up @@ -259,7 +260,7 @@ resource "null_resource" "kustomization" {
"${path.module}/templates/hcloud-csi.yaml.tpl",
{
version = local.csi_version
values = indent(4, trimspace(var.hetzner_csi_values))
values = indent(4, trimspace(local.hetzner_csi_values))
})
destination = "/var/post_install/hcloud-csi.yaml"
}
Expand Down
3 changes: 3 additions & 0 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,9 @@ persistence:
csi_driver_smb_values = var.csi_driver_smb_values != "" ? var.csi_driver_smb_values : <<EOT
EOT

hetzner_csi_values = var.hetzner_csi_values != "" ? var.hetzner_csi_values : <<EOT
EOT

nginx_values = var.nginx_values != "" ? var.nginx_values : <<EOT
controller:
watchIngressWithoutClass: "true"
Expand Down

0 comments on commit 87df217

Please sign in to comment.