Commit ea9ca38c by chenxx

change annatation

1 parent 147e504e
...@@ -103,7 +103,7 @@ module "ingress" { ...@@ -103,7 +103,7 @@ module "ingress" {
# "nginx.ingress.kubernetes.io/proxy-send-timeout" = "360" # "nginx.ingress.kubernetes.io/proxy-send-timeout" = "360"
# "nginx.ingress.kubernetes.io/proxy-read-timeout" = "360" # "nginx.ingress.kubernetes.io/proxy-read-timeout" = "360"
# } # }
annotations = var.annotations annotations = var.ingress_switch.annotations
rule = [ rule = [
{ {
......
...@@ -205,12 +205,25 @@ components: ...@@ -205,12 +205,25 @@ components:
type: object type: object
description: choise ingress switch description: choise ingress switch
default: default:
annotations: {}
domain_name: null domain_name: null
path: / path: /
path_type: ImplementationSpecific path_type: ImplementationSpecific
switch: "off" switch: "off"
nullable: true nullable: true
properties: properties:
annotations:
nullable: true
additionalProperties:
type: object
x-walrus-ui:
colSpan: 12
title: Annotations
type: object
x-walrus-ui:
colSpan: 12
order: 5
howIf: switch=on
domain_name: domain_name:
nullable: true nullable: true
title: Domain Name title: Domain Name
...@@ -282,21 +295,6 @@ components: ...@@ -282,21 +295,6 @@ components:
colSpan: 12 colSpan: 12
group: Advanced group: Advanced
order: 18 order: 18
annotations:
title: Annotations
type: object
description: (Optional) Custom Annotations
default: {}
nullable: true
additionalProperties:
type: object
x-walrus-ui:
colSpan: 12
x-walrus-ui:
colSpan: 12
group: Ingress
order: 19
showIf: switch=on
prevent_deploy_on_the_same_node: prevent_deploy_on_the_same_node:
title: Prevent Deploy On The Same Node title: Prevent Deploy On The Same Node
type: boolean type: boolean
......
...@@ -131,12 +131,14 @@ variable "ingress_switch" { ...@@ -131,12 +131,14 @@ variable "ingress_switch" {
path_type = optional(string) path_type = optional(string)
path = optional(string) path = optional(string)
domain_name = optional(string) domain_name = optional(string)
annotations = map(any)
}) })
default = { default = {
switch = "off" switch = "off"
path_type = "ImplementationSpecific" path_type = "ImplementationSpecific"
path = "/" path = "/"
domain_name = null domain_name = null
annotations = {}
} }
description = "choise ingress switch" description = "choise ingress switch"
} }
...@@ -150,13 +152,6 @@ variable "hosts" { ...@@ -150,13 +152,6 @@ variable "hosts" {
} }
# @label "annotations"
# @group "Ingress"
variable "annotations" {
type = map(any)
description = "(Optional) Custom Annotations"
default = {}
}
# @label "affinity" # @label "affinity"
# @group "advance" # @group "advance"
variable "prevent_deploy_on_the_same_node" { variable "prevent_deploy_on_the_same_node" {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!