From 8a6aadfa08fdd033c9e1e4e696bf4c78d91c1dc4 Mon Sep 17 00:00:00 2001 From: rmweir Date: Thu, 5 Mar 2020 15:24:27 -0700 Subject: [PATCH] Add server/worker drain fields to k3sConfig --- apis/management.cattle.io/v3/k3s_types.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apis/management.cattle.io/v3/k3s_types.go b/apis/management.cattle.io/v3/k3s_types.go index c1094ce0..7923a1d7 100644 --- a/apis/management.cattle.io/v3/k3s_types.go +++ b/apis/management.cattle.io/v3/k3s_types.go @@ -13,4 +13,8 @@ type K3sUpgradeStrategy struct { ServerConcurrency int `yaml:"server_concurrency" json:"serverConcurrency,omitempty"` // How many workers should be upgraded at a time WorkerConcurrency int `yaml:"worker_concurrency" json:"workerConcurrency,omitempty"` + // Whether controlplane nodes should be drained + DrainServerNodes bool `yaml:"drain_server_nodes" json:"drainServerNodes,omitempty"` + // Whether worker nodes should be drained + DrainWorkerNodes bool `yaml:"drain_worker_nodes" json:"drainWorkerNodes,omitempty"` }