Refacto and add modules
This commit is contained in:
@@ -11,55 +11,55 @@ variable "labels" {
|
||||
type = map(string)
|
||||
}
|
||||
variable "annotations" {
|
||||
type = map(string)
|
||||
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)}))
|
||||
type = object({
|
||||
redis = optional(object({ pull_policy = optional(string), registry = optional(string), repository = optional(string), tag = optional(string) })),
|
||||
redis_exporter = optional(object({ pull_policy = optional(string), registry = optional(string), repository = optional(string), tag = optional(string) }))
|
||||
})
|
||||
default = {
|
||||
default = {
|
||||
"redis" = {
|
||||
"pullPolicy" = "IfNotPresent"
|
||||
"registry" = "quay.io"
|
||||
"repository" = "opstree/redis"
|
||||
"tag" = "v7.0.12"
|
||||
"pull_policy" = "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"
|
||||
"pull_policy" = "IfNotPresent"
|
||||
"registry" = "quay.io"
|
||||
"repository" = "opstree/redis-exporter"
|
||||
"tag" = "v1.44.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
variable "exporter" {
|
||||
type = object({
|
||||
type = object({
|
||||
enabled = optional(bool)
|
||||
})
|
||||
default = {
|
||||
default = {
|
||||
"enabled" = true
|
||||
}
|
||||
}
|
||||
variable "password" {
|
||||
type = object({
|
||||
type = object({
|
||||
enabled = optional(bool),
|
||||
name = optional(string),
|
||||
key = optional(string)
|
||||
name = optional(string),
|
||||
key = optional(string)
|
||||
})
|
||||
default = {
|
||||
default = {
|
||||
"enabled" = false
|
||||
"name" = ""
|
||||
"key" = ""
|
||||
"name" = ""
|
||||
"key" = ""
|
||||
}
|
||||
}
|
||||
variable "storage" {
|
||||
type = object({
|
||||
type = object({
|
||||
size = optional(string)
|
||||
})
|
||||
default = {
|
||||
default = {
|
||||
"size" = "2Gi"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user