From 0dcfecbc5ecdc3eb0ff2b6db9c3e6c1a28dd1798 Mon Sep 17 00:00:00 2001 From: rmweir Date: Mon, 9 Mar 2020 18:02:06 -0700 Subject: [PATCH] Prevent less than 1 concurrency --- apis/management.cattle.io/v3/k3s_types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/management.cattle.io/v3/k3s_types.go b/apis/management.cattle.io/v3/k3s_types.go index 7923a1d7..a0ce858e 100644 --- a/apis/management.cattle.io/v3/k3s_types.go +++ b/apis/management.cattle.io/v3/k3s_types.go @@ -10,9 +10,9 @@ type K3sConfig struct { //K3sUpgradeStrategy provides configuration to the downstream system-upgrade-controller type K3sUpgradeStrategy struct { // How many controlplane nodes should be upgrade at time, defaults to 1 - ServerConcurrency int `yaml:"server_concurrency" json:"serverConcurrency,omitempty"` + ServerConcurrency int `yaml:"server_concurrency" json:"serverConcurrency,omitempty" norman:"min=1"` // How many workers should be upgraded at a time - WorkerConcurrency int `yaml:"worker_concurrency" json:"workerConcurrency,omitempty"` + WorkerConcurrency int `yaml:"worker_concurrency" json:"workerConcurrency,omitempty" norman:"min=1"` // Whether controlplane nodes should be drained DrainServerNodes bool `yaml:"drain_server_nodes" json:"drainServerNodes,omitempty"` // Whether worker nodes should be drained