Skip to content

Commit

Permalink
update to terraform 0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
givanovexpe committed Oct 15, 2024
1 parent f7a0275 commit 641dd70
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
26 changes: 15 additions & 11 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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%"
Expand All @@ -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%"
Expand All @@ -422,24 +422,28 @@ 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
}
}

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" {
Expand Down
3 changes: 1 addition & 2 deletions version.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 641dd70

Please sign in to comment.