Commit 52a470a8 by chenxx

update rolling update

1 parent 0b5757d1
...@@ -63,7 +63,12 @@ module "deployment" { ...@@ -63,7 +63,12 @@ module "deployment" {
prevent_deploy_on_the_same_node = var.prevent_deploy_on_the_same_node prevent_deploy_on_the_same_node = var.prevent_deploy_on_the_same_node
#RollingUpdate #RollingUpdate
rolling_update = [{"max_surge": 1, "max_unavailable": 0}] rolling_update = [
{
"max_surge" = var.max_surge,
"max_unavailable" = var.max_unavailable
}
]
} }
......
...@@ -306,19 +306,26 @@ components: ...@@ -306,19 +306,26 @@ components:
x-walrus-ui: x-walrus-ui:
group: Advanced group: Advanced
order: 20 order: 20
rolling_update: max_surge:
title: Rolling Update title: Max Surge
type: array type: number
description: Rolling update config params. Present only if strategy_update description: Rolling update config params. Present only if strategy_update
= RollingUpdate = RollingUpdate max_surge
default: [] default: 1
items:
type: object
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
colSpan: 12
group: Advanced group: Advanced
order: 21 order: 21
max_unavailable:
title: Max Unavailable
type: number
description: Rolling update config params. Present only if strategy_update
= RollingUpdate max_unavailable
default: 0
nullable: true
x-walrus-ui:
group: Advanced
order: 22
x-walrus-ui: x-walrus-ui:
groupOrder: groupOrder:
- Basic - Basic
......
...@@ -164,9 +164,16 @@ variable "prevent_deploy_on_the_same_node" { ...@@ -164,9 +164,16 @@ variable "prevent_deploy_on_the_same_node" {
type = bool type = bool
default = false default = false
} }
# @label "rolling_update" # @label "max_surge"
# @group "advance" # @group "advance"
variable "rolling_update" { variable "max_surge" {
description = "Rolling update config params. Present only if strategy_update = RollingUpdate" description = "Rolling update config params. Present only if strategy_update = RollingUpdate max_surge"
default = [] default = 1
}
# @label "max_unavailable"
# @group "advance"
variable "max_unavailable" {
description = "Rolling update config params. Present only if strategy_update = RollingUpdate max_unavailable"
default = 0
} }
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!