From c172040e892e770c0c641cee3ff5254c2433545b Mon Sep 17 00:00:00 2001 From: Stefan Le Breton Date: Sun, 24 Nov 2024 17:53:56 +0100 Subject: [PATCH] cilium version can be set, default versions for talos, k8s, cilium --- cilium.tf | 4 ++-- variables.tf | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/cilium.tf b/cilium.tf index 37953d0..2de35ea 100644 --- a/cilium.tf +++ b/cilium.tf @@ -5,8 +5,8 @@ data "helm_template" "cilium" { namespace = "kube-system" chart = "cilium" repository = "https://helm.cilium.io/" - version = "1.16.0-rc.0" # TODO: optional specific version - kube_version = "1.29" # TODO: use installed? + version = var.cilium_version + kube_version = var.kubernetes_version atomic = true # features diff --git a/variables.tf b/variables.tf index 7a71bc7..0b16b7e 100644 --- a/variables.tf +++ b/variables.tf @@ -10,6 +10,7 @@ variable "talos_num_wk" { variable "talos_version" { type = string description = "talos image version" + default = "1.8.3" } variable "talos_cluster_name" { @@ -20,7 +21,13 @@ variable "talos_cluster_name" { variable "kubernetes_version" { type = string description = "kubernetes image version" - default = "" + default = "1.31" +} + +variable "cilium_version" { + type = string + description = "cilium version" + default = "1.16" } variable "subdomain" {