mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
Merge pull request #112596 from chendave/data
kubeadm: try to reuse `RunData` if possible
This commit is contained in:
commit
17c5066625
@ -221,11 +221,13 @@ func (e *Runner) Run(args []string) error {
|
||||
return errors.New(msg.String())
|
||||
}
|
||||
|
||||
// builds the runner data
|
||||
var data RunData
|
||||
// builds the runner data if the runtime data is not initialized
|
||||
data := e.runData
|
||||
if data == nil {
|
||||
if data, err = e.InitData(args); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
err = e.visitAll(func(p *phaseRunner) error {
|
||||
// if the phase should not be run, skip the phase.
|
||||
|
Loading…
Reference in New Issue
Block a user