64 lines
1.3 KiB
HCL
64 lines
1.3 KiB
HCL
variable "component" {
|
|
type = string
|
|
}
|
|
variable "instance" {
|
|
type = string
|
|
}
|
|
variable "namespace" {
|
|
type = string
|
|
}
|
|
variable "labels" {
|
|
type = map(string)
|
|
}
|
|
|
|
variable "backups" {
|
|
default = {
|
|
"enable" = false
|
|
"endpoint" = ""
|
|
"key_id_key" = "s3-id"
|
|
"restic_key" = "bck-password"
|
|
"schedule" = {
|
|
"db" = "30 3 * * *"
|
|
}
|
|
"secret_key" = "s3-secret"
|
|
"secret_name" = "backup-settings"
|
|
"use_barman" = false
|
|
}
|
|
type = object({
|
|
enable = optional(bool),
|
|
endpoint = optional(string),
|
|
key_id_key = optional(string),
|
|
restic_key = optional(string),
|
|
schedule = optional(object({
|
|
db = optional(string),
|
|
})),
|
|
secret_key = optional(string),
|
|
secret_name = optional(string),
|
|
use_barman = optional(bool)
|
|
})
|
|
}
|
|
variable "images" {
|
|
type = object({
|
|
postgresql = optional(object({ registry = optional(string), repository = optional(string), tag = optional(number) })),
|
|
})
|
|
default = {
|
|
"postgresql" = {
|
|
"registry" = "ghcr.io"
|
|
"repository" = "cloudnative-pg/postgresql"
|
|
"tag" = 15.3
|
|
}
|
|
}
|
|
}
|
|
variable "replicas" {
|
|
type = number
|
|
default = 1
|
|
}
|
|
variable "storage" {
|
|
type = object({
|
|
size = optional(string)
|
|
})
|
|
default = {
|
|
"size" = "5Gi"
|
|
}
|
|
}
|