Files
kydah-modules/redis/variables.tf

65 lines
1.3 KiB
HCL

variable "component" {
type = string
}
variable "instance" {
type = string
}
variable "namespace" {
type = string
}
variable "labels" {
type = map(string)
}
variable "annotations" {
type = map(string)
default = {}
}
variable "images" {
type = object({
redis = optional(object({pullPolicy = optional(string), registry = optional(string), repository = optional(string), tag = optional(string)})),
redis_exporter = optional(object({pullPolicy = optional(string), registry = optional(string), repository = optional(string), tag = optional(string)}))
})
default = {
"redis" = {
"pullPolicy" = "IfNotPresent"
"registry" = "quay.io"
"repository" = "opstree/redis"
"tag" = "v7.0.12"
}
"redis_exporter" = {
"pullPolicy" = "IfNotPresent"
"registry" = "quay.io"
"repository" = "opstree/redis-exporter"
"tag" = "v1.44.0"
}
}
}
variable "exporter" {
type = object({
enabled = optional(bool)
})
default = {
"enabled" = true
}
}
variable "password" {
type = object({
enabled = optional(bool),
name = optional(string),
key = optional(string)
})
default = {
"enabled" = false
"name" = ""
"key" = ""
}
}
variable "storage" {
type = object({
size = optional(string)
})
default = {
"size" = "2Gi"
}
}