Skip to content

Commit

Permalink
fixremove deprecated metric feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
npalm committed Dec 20, 2024
1 parent c5d4693 commit b6b2054
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 35 deletions.
23 changes: 0 additions & 23 deletions modules/multi-runner/variables.deprecated.tf

This file was deleted.

6 changes: 0 additions & 6 deletions modules/termination-watcher/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ variable "config" {
type = object({
aws_partition = optional(string, null)
architecture = optional(string, null)
enable_metric = optional(string, null)
environment_variables = optional(map(string), {})
features = optional(object({
enable_spot_termination_handler = optional(bool, true)
Expand Down Expand Up @@ -72,9 +71,4 @@ variable "config" {
}), {})
zip = optional(string, null)
})

validation {
condition = var.config.enable_metric == null
error_message = "enable_metric is deprecated, use metrics.enable instead."
}
}
7 changes: 1 addition & 6 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -888,8 +888,7 @@ variable "instance_termination_watcher" {
EOF

type = object({
enable = optional(bool, false)
enable_metric = optional(string, null) # deprectaed
enable = optional(bool, false)
features = optional(object({
enable_spot_termination_handler = optional(bool, true)
enable_spot_termination_notification_watcher = optional(bool, true)
Expand All @@ -902,10 +901,6 @@ variable "instance_termination_watcher" {
})
default = {}

validation {
condition = var.instance_termination_watcher.enable_metric == null
error_message = "The variable `instance_termination_watcher.enable_metric` is deprecated, use `metrics` instead."
}
}

variable "runners_ebs_optimized" {
Expand Down

0 comments on commit b6b2054

Please sign in to comment.