Optimize service port definition
This commit is contained in:
@@ -17,24 +17,28 @@ variable "ingress_class" {
|
||||
variable "labels" {
|
||||
type = map(string)
|
||||
}
|
||||
variable "dns_names" {
|
||||
type = list(string)
|
||||
}
|
||||
variable "middlewares" {
|
||||
type = list(string)
|
||||
default = []
|
||||
}
|
||||
|
||||
variable "services_mapping" {
|
||||
variable "rules_mapper" {
|
||||
type = list(object({
|
||||
path = optional(string)
|
||||
service = object({
|
||||
name= string
|
||||
port = object({
|
||||
number = number
|
||||
host = string
|
||||
paths = list(object({
|
||||
path = optional(string)
|
||||
type = optional(string)
|
||||
backend = object({
|
||||
service = object({
|
||||
name = string
|
||||
port = object({
|
||||
name = string
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
}))
|
||||
}))
|
||||
description = "Simplified rules mapper for ingress"
|
||||
}
|
||||
|
||||
variable "entrypoint" {
|
||||
|
||||
Reference in New Issue
Block a user