2024-05-28 22:25:56 +00:00
|
|
|
variable "application_name" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "namespace" {
|
|
|
|
default = "default"
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "image" {
|
|
|
|
type = object({
|
|
|
|
name = string
|
|
|
|
tag = optional(string, "latest")
|
|
|
|
pull-policy = optional(string, "Always")
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "args" {
|
|
|
|
type = list(string)
|
|
|
|
default = null
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "ports" {
|
|
|
|
type = list(
|
|
|
|
object({
|
|
|
|
container_port = number
|
|
|
|
expose = optional(bool, false)
|
|
|
|
})
|
|
|
|
)
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "env" {
|
|
|
|
type = list(
|
|
|
|
object({
|
|
|
|
name = string
|
|
|
|
value = string
|
|
|
|
})
|
|
|
|
)
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "config_content" {
|
|
|
|
type = string
|
|
|
|
default = null
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "volumes" {
|
|
|
|
type = map(
|
|
|
|
object({
|
|
|
|
path = string
|
|
|
|
})
|
|
|
|
)
|
|
|
|
default = {}
|
|
|
|
}
|
2024-05-29 21:23:41 +00:00
|
|
|
|
|
|
|
variable "replicas" {
|
|
|
|
type = number
|
|
|
|
default = 1
|
|
|
|
description = "number of replicas for the application's pod"
|
|
|
|
}
|