Files
kydah-modules/ingress/variables.tf
2024-01-15 09:30:00 +01:00

59 lines
937 B
HCL

variable "component" {
type = string
}
variable "instance" {
type = string
}
variable "namespace" {
type = string
}
variable "issuer" {
type = string
}
variable "ingress_class" {
type = string
}
variable "labels" {
type = map(string)
}
variable "dns_names" {
type = list(string)
}
variable "middlewares" {
type = list(string)
default = []
}
variable "services" {
type = list(any)
}
variable "create_redirect" {
type = bool
default = true
}
variable "create_cert" {
type = bool
default = true
}
variable "enforce_tls" {
type = bool
default = true
}
variable "sub_paths" {
type = list(string)
default = [""]
}
variable "cert_name" {
type = string
default = ""
}
variable "entrypoint" {
type = string
default = ""
validation {
condition = contains(["", "web", "websecure"], var.entrypoint)
error_message = "Only empty \"\", web or websecure is allowed"
}
}