Skip to content

Commit

Permalink
add lifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Aug 21, 2024
1 parent d4aca3f commit 87dc590
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ module "images_cluster_autoscaler" {
application_name = format("eks/%v", var.cluster_name)
image_config = [for k, v in var.cluster_autoscaler_images : v if v.enabled]
force_delete = true

enable_lifecycle_policy = true
enable_lifecycle_policy_image_config = true
lifecycle_policy_all = true
lifecycle_policy_keep_count = 3

tags = merge(
local.base_tags,
local.common_tags,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ module "images" {
application_name = format("eks/%v", var.cluster_name)
image_config = local.image_config
force_delete = true

enable_lifecycle_policy = true
enable_lifecycle_policy_image_config = true
lifecycle_policy_all = true
lifecycle_policy_keep_count = 3

tags = merge(
local.base_tags,
local.common_tags,
Expand Down

0 comments on commit 87dc590

Please sign in to comment.