@@ -5,16 +5,12 @@ check "reserved_cidrs_required_for_gke" {
55 }
66}
77
8- locals {
9- liqo_image_tag = var. liqo_chart_version
10- }
11-
128# GKE-specific Liqo Helm chart configuration
139module "liqo_helm_values_gke" {
1410 count = var. k8s_provider == " gke" ? 1 : 0
1511 source = " ./modules/gke"
1612
17- image_tag = local . liqo_image_tag
13+ image_tag = var . liqo_image_tag
1814 cluster_name = var. cluster_name
1915 cluster_region = var. cluster_region
2016 cluster_zone = var. cluster_zone
@@ -29,7 +25,7 @@ module "liqo_helm_values_eks" {
2925 count = var. k8s_provider == " eks" ? 1 : 0
3026 source = " ./modules/eks"
3127
32- image_tag = local . liqo_image_tag
28+ image_tag = var . liqo_image_tag
3329 cluster_name = var. cluster_name
3430 cluster_region = var. cluster_region
3531 api_server_address = var. api_server_address
@@ -42,7 +38,7 @@ module "liqo_helm_values_aks" {
4238 count = var. k8s_provider == " aks" ? 1 : 0
4339 source = " ./modules/aks"
4440
45- image_tag = local . liqo_image_tag
41+ image_tag = var . liqo_image_tag
4642 cluster_name = var. cluster_name
4743 cluster_region = var. cluster_region
4844 cluster_zone = var. cluster_zone
@@ -52,10 +48,6 @@ module "liqo_helm_values_aks" {
5248}
5349
5450locals {
55- liqo_chart_repo = " https://castai.github.io/liqo"
56- liqo_chart_name = " liqo"
57- liqo_release_name = " omni"
58-
5951 omni_namespace = " castai-omni"
6052 omni_agent_release = " castai-omni-agent"
6153 omni_agent_chart = " omni-agent"
@@ -155,9 +147,7 @@ resource "kubernetes_config_map_v1" "helm_values" {
155147 }
156148
157149 data = {
158- " liqo.repository" = local.liqo_chart_repo
159- " liqo.chart" = local.liqo_chart_name
160- " liqo.version" = var.liqo_chart_version
150+ " liqo.version" = var.liqo_image_tag
161151 " omni-agent.repository" = local.castai_helm_repository
162152 " omni-agent.chart" = local.omni_agent_chart
163153 " values.yaml" = yamlencode (local. helm_yaml_values )
0 commit comments