ports declarations should support publish_mode
This commit is contained in:
parent
4a1078d55d
commit
545244341c
6 changed files with 25 additions and 19 deletions
|
@ -27,9 +27,10 @@ variable "networks" {
|
|||
}
|
||||
variable "ports" {
|
||||
type = list(object({
|
||||
host = optional(number)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
host = optional(number, null)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
publish_mode = optional(string, "ingress")
|
||||
}))
|
||||
default = []
|
||||
description = "A map of port mappings to expose on the host. The key is the host port, and the value is the container port."
|
||||
|
|
|
@ -27,9 +27,10 @@ variable "networks" {
|
|||
}
|
||||
variable "ports" {
|
||||
type = list(object({
|
||||
host = optional(number)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
host = optional(number, null)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
publish_mode = optional(string, "ingress")
|
||||
}))
|
||||
default = []
|
||||
description = "A map of port mappings to expose on the host. The key is the host port, and the value is the container port."
|
||||
|
|
|
@ -42,9 +42,10 @@ variable "networks" {
|
|||
}
|
||||
variable "ports" {
|
||||
type = list(object({
|
||||
host = optional(number)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
host = optional(number, null)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
publish_mode = optional(string, "ingress")
|
||||
}))
|
||||
default = []
|
||||
description = "A map of port mappings to expose on the host. The key is the host port, and the value is the container port."
|
||||
|
|
|
@ -52,9 +52,10 @@ variable "networks" {
|
|||
}
|
||||
variable "ports" {
|
||||
type = list(object({
|
||||
host = optional(number)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
host = optional(number, null)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
publish_mode = optional(string, "ingress")
|
||||
}))
|
||||
default = []
|
||||
description = "A map of port mappings to expose on the host. The key is the host port, and the value is the container port."
|
||||
|
|
|
@ -16,10 +16,11 @@ variable "networks" {
|
|||
description = "A list of network names to attach the service to."
|
||||
} /*
|
||||
variable "ports" {
|
||||
type = list(object({
|
||||
host = optional(number)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
type = list(object({
|
||||
host = optional(number, null)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
publish_mode = optional(string, "ingress")
|
||||
}))
|
||||
default = []
|
||||
description = "A map of port mappings to expose on the host. The key is the host port, and the value is the container port."
|
||||
|
|
|
@ -47,9 +47,10 @@ variable "networks" {
|
|||
}
|
||||
variable "ports" {
|
||||
type = list(object({
|
||||
host = optional(number)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
host = optional(number, null)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
publish_mode = optional(string, "ingress")
|
||||
}))
|
||||
default = []
|
||||
description = "A map of port mappings to expose on the host. The key is the host port, and the value is the container port."
|
||||
|
|
Loading…
Reference in a new issue