added possibility to use latest containers for CCM and CSI

This commit is contained in:
Karim Naufal
2022-01-15 09:04:21 +01:00
parent 8b0e0666ef
commit cd9bcd9710
8 changed files with 104 additions and 3 deletions

View File

@@ -147,6 +147,7 @@ resource "hcloud_firewall" "k3s" {
resource "local_file" "hetzner_ccm_config" {
content = templatefile("${path.module}/templates/hetzner_ccm.yaml.tpl", {
ccm_version = var.hetzner_ccm_version != null ? var.hetzner_ccm_version : data.github_release.hetzner_ccm.release_tag
patch_name = var.hetzner_ccm_container_latest ? "patch_latest" : "patch"
})
filename = "${path.module}/hetzner/ccm/kustomization.yaml"
file_permission = "0644"
@@ -156,6 +157,7 @@ resource "local_file" "hetzner_ccm_config" {
resource "local_file" "hetzner_csi_config" {
content = templatefile("${path.module}/templates/hetzner_csi.yaml.tpl", {
csi_version = var.hetzner_csi_version != null ? var.hetzner_csi_version : data.github_release.hetzner_csi.release_tag
patch_name = var.hetzner_csi_container_latest ? "patch_latest" : ""
})
filename = "${path.module}/hetzner/csi/kustomization.yaml"
file_permission = "0644"