Skip to content

Commit

Permalink
Fixed common-service filtering correct images
Browse files Browse the repository at this point in the history
  • Loading branch information
dang0317 committed Oct 2, 2024
1 parent 6d4214f commit 17ffd9e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/full-cluster-tf-upgrade/1.30/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# EKS Full Cluster Example 1.28
# EKS Full Cluster Example 1.30

This is for deploying an EKS cluster with 1.28. This is revision of 1.28 example, so it is in beta mode.
This is for deploying an EKS cluster with 1.30. This is revision of 1.29 example, so it is in beta mode.

## About

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module "images_cluster_autoscaler" {
profile = var.profile
application_list = []
application_name = format("eks/%v", var.cluster_name)
image_config = [for k, v in var.cluster_autoscaler_images : v if v.enabled]
image_config = [for k, v in local.images_settings : v if (v.enabled && v.dest_path == "cluster-autoscaler")]
force_delete = true

enable_lifecycle_policy = true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
locals {
image_config = [for k, v in var.image_details : v if v.enabled]
image_config = [ for k, v in local.images_settings : v if (v.enabled && v.dest_path == null) ]
image_output = { for k, v in module.images.images : v.name => v }

charts = { for k, v in var.chart_details : k => v if try(v.enabled, true) }
images = { for k, v in var.image_details : k => v if v.enabled }
charts = { for k, v in local.chart_settings : k => v if try(v.enabled, true) }
images = { for k, v in local.images_settings : k => v if (v.enabled && v.dest_path == null) }
}

module "images" {
Expand Down
4 changes: 2 additions & 2 deletions examples/full-cluster-tf-upgrade/1.30/images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cluster-autoscaler:
documentation: "https://github.com/kubernetes/autoscaler/releases"
name: "cluster-autoscaler"
image: "registry.k8s.io/autoscaling/cluster-autoscaler"
dest_path: null
dest_path: "cluster-autoscaler"
source_registry: "registry.k8s.io"
source_image: "autoscaling/cluster-autoscaler"
source_tag: null
Expand Down Expand Up @@ -47,7 +47,7 @@ cert-manager-ctl:
source_image: "jetstack/cert-manager-ctl"
source_tag: null
enabled: true
tag: "v1.15.3"
tag: "v1.14.7"
metrics-server:
documentation: "https://hub.docker.com/r/bitnami/metrics-server/tags"
name: "metrics-server"
Expand Down

0 comments on commit 17ffd9e

Please sign in to comment.