mirror of
https://github.com/rancher/types.git
synced 2025-08-31 12:48:45 +00:00
Prevent less than 1 concurrency
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user