Skip to content

Commit

Permalink
refactor: change MongoDB resources variables structure
Browse files Browse the repository at this point in the history
  • Loading branch information
tschneider-aneo committed Aug 9, 2024
1 parent ff9abc8 commit e9259fe
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions storage/onpremise/mongodb/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,29 +43,17 @@ variable "mongodb" {
variable "mongodb_resources" {
description = "CPU and Memory limits and requests for MongoDB"
type = object({
limits = optional(object({
cpu = optional(string, "750m")
memory = optional(string, "768Mi")
}), {})
requests = optional(object({
cpu = optional(string, "500m")
memory = optional(string, "512Mi")
}), {})
limits = optional(map(string))
requests = optional(map(string))
})
default = {}
}

variable "arbiter_resources" {
description = "CPU and Memory limits and requests for MongoDB arbiter"
type = object({
limits = optional(object({
cpu = optional(string, "750m")
memory = optional(string, "768Mi")
}), {})
requests = optional(object({
cpu = optional(string, "500m")
memory = optional(string, "512Mi")
}), {})
limits = optional(map(string))
requests = optional(map(string))
})
default = {}
}
Expand Down

0 comments on commit e9259fe

Please sign in to comment.