Commit 25a25456 by chenxx

add annotations

1 parent 9185b43f
...@@ -52,7 +52,7 @@ module "deployment" { ...@@ -52,7 +52,7 @@ module "deployment" {
#domian map to /etc/hosts #domian map to /etc/hosts
hosts = [ hosts = [
for host_list in var.hosts: for host_list in var.hosts :
{ {
hostname = host_list.hostname, hostname = host_list.hostname,
ip = host_list.ip ip = host_list.ip
...@@ -88,7 +88,7 @@ module "ingress" { ...@@ -88,7 +88,7 @@ module "ingress" {
ingress_name = local.name ingress_name = local.name
service_namespace = local.namespace service_namespace = local.namespace
service_name = local.name service_name = local.name
annotations = var.annotations
rule = [ rule = [
{ {
domain = var.domain_name domain = var.domain_name
......
...@@ -85,7 +85,6 @@ variable "walrus_metadata_namespace_name" { ...@@ -85,7 +85,6 @@ variable "walrus_metadata_namespace_name" {
} }
# @label "应用日志挂载卷名" # @label "应用日志挂载卷名"
# @group "Advanced" # @group "Advanced"
variable "app_log_path_volume_name" { variable "app_log_path_volume_name" {
...@@ -150,3 +149,7 @@ variable "hosts" { ...@@ -150,3 +149,7 @@ variable "hosts" {
description = "(Optional) Add /etc/hosts records to pods" description = "(Optional) Add /etc/hosts records to pods"
default = [] default = []
} }
variable "annotations" {
description = "(Optional) Custom Annotations"
default = null
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!