diff --git a/apis/management.cattle.io/v3/rke_types.go b/apis/management.cattle.io/v3/rke_types.go index 8aa65264..7bd646c9 100644 --- a/apis/management.cattle.io/v3/rke_types.go +++ b/apis/management.cattle.io/v3/rke_types.go @@ -71,7 +71,7 @@ type NodeUpgradeStrategy struct { MaxUnavailableWorker string `yaml:"max_unavailable_worker" json:"maxUnavailableWorker,omitempty" norman:"min=1,default=10%"` // MaxUnavailableControlplane input can be a number of nodes or a percentage of nodes MaxUnavailableControlplane string `yaml:"max_unavailable_controlplane" json:"maxUnavailableControlplane,omitempty" norman:"min=1,default=1"` - Drain bool `yaml:"drain" json:"drain,omitempty"` + Drain *bool `yaml:"drain" json:"drain,omitempty"` DrainInput *NodeDrainInput `yaml:"node_drain_input" json:"nodeDrainInput,omitempty"` } diff --git a/apis/management.cattle.io/v3/zz_generated_deepcopy.go b/apis/management.cattle.io/v3/zz_generated_deepcopy.go index 9dc993e1..a1e56d8d 100644 --- a/apis/management.cattle.io/v3/zz_generated_deepcopy.go +++ b/apis/management.cattle.io/v3/zz_generated_deepcopy.go @@ -6530,6 +6530,11 @@ func (in *NodeTemplateStatus) DeepCopy() *NodeTemplateStatus { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NodeUpgradeStrategy) DeepCopyInto(out *NodeUpgradeStrategy) { *out = *in + if in.Drain != nil { + in, out := &in.Drain, &out.Drain + *out = new(bool) + **out = **in + } if in.DrainInput != nil { in, out := &in.DrainInput, &out.DrainInput *out = new(NodeDrainInput) diff --git a/client/management/v3/zz_generated_node_upgrade_strategy.go b/client/management/v3/zz_generated_node_upgrade_strategy.go index 20d8073a..3e6106c3 100644 --- a/client/management/v3/zz_generated_node_upgrade_strategy.go +++ b/client/management/v3/zz_generated_node_upgrade_strategy.go @@ -9,7 +9,7 @@ const ( ) type NodeUpgradeStrategy struct { - Drain bool `json:"drain,omitempty" yaml:"drain,omitempty"` + Drain *bool `json:"drain,omitempty" yaml:"drain,omitempty"` DrainInput *NodeDrainInput `json:"nodeDrainInput,omitempty" yaml:"nodeDrainInput,omitempty"` MaxUnavailableControlplane string `json:"maxUnavailableControlplane,omitempty" yaml:"maxUnavailableControlplane,omitempty"` MaxUnavailableWorker string `json:"maxUnavailableWorker,omitempty" yaml:"maxUnavailableWorker,omitempty"`