Optimize service port definition

This commit is contained in:
2024-02-18 10:07:41 +01:00
parent bcdf666cc0
commit 82a179dad3
14 changed files with 301 additions and 129 deletions

View File

@@ -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" {