diff --git a/variables.tf b/variables.tf index 9b53e30..ede7518 100644 --- a/variables.tf +++ b/variables.tf @@ -397,8 +397,8 @@ variable "hms_ro_k8s_max_replica_count" { variable "hms_ro_k8s_rolling_update_strategy" { description = "Rolling update strategy settings for HMS RO including max_surge and max_unavailable" type = object({ - max_surge = optional(string) - max_unavailable = optional(string) + max_surge = string + max_unavailable = string }) default = { max_surge = "25%" @@ -409,8 +409,8 @@ variable "hms_ro_k8s_rolling_update_strategy" { variable "hms_rw_k8s_rolling_update_strategy" { description = "Rolling update strategy settings for HMS RW including max_surge and max_unavailable" type = object({ - max_surge = optional(string) - max_unavailable = optional(string) + max_surge = string + max_unavailable = string }) default = { max_surge = "25%" @@ -422,11 +422,13 @@ variable "hms_ro_k8s_pdb_settings" { description = "PDB settings for HMS RO including enable flag, maxUnavailable, and minAvailable." type = object({ enabled = bool - max_unavailable = optional(string) - min_available = optional(string) + max_unavailable = string + min_available = string }) default = { - enabled = false + enabled = false + max_unavailable = null + min_available = null } } @@ -434,12 +436,14 @@ variable "hms_rw_k8s_pdb_settings" { description = "PDB settings for HMS RW including enable flag, maxUnavailable, and minAvailable." type = object({ enabled = bool - max_unavailable = optional(string) - min_available = optional(string) + max_unavailable = string + min_available = string }) default = { - enabled = false - } + enabled = false + max_unavailable = null + min_available = null + } } variable "hms_rw_node_affinity" { diff --git a/version.tf b/version.tf index 395ae95..96968f9 100644 --- a/version.tf +++ b/version.tf @@ -5,8 +5,7 @@ */ terraform { - experiments = [module_variable_optional_attrs] - required_version = ">= 0.15.0, < 1.0.0" + required_version = ">= 0.13.0" required_providers { kubernetes = { source = "hashicorp/kubernetes"