Commit 52a470a8 by chenxx

update rolling update

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