Files
kydah-modules/ingress/variables.tf

61 lines
1.1 KiB
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_mapping" {
type = list(object({
path = optional(string)
service = object({
name= string
port = object({
number = number
})
})
}))
}
variable "entrypoint" {
type = string
default = ""
description = "Define ingres support, if empty or define to websecure, tls will be activate"
validation {
condition = contains(["", "web", "websecure"], var.entrypoint)
error_message = "Only empty \"\", web or websecure is allowed"
}
}
variable "cert_name" {
type = string
default = ""
description = "Give a secret name for tls, if empty and entrypointis websecure or empty, one will be created"
}
variable "create_redirect" {
type = bool
default = true
description = "Enfore https redirection"
}