mirror of https://github.com/kubernetes/kops.git
Add message to error for stopping rolling update after failure
This commit is contained in:
parent
b06e3efa4d
commit
2a69901d52
|
@ -114,7 +114,7 @@ func (c *RollingUpdateCluster) RollingUpdate(groups map[string]*cloudinstances.C
|
|||
// Do not continue update if bastion(s) failed
|
||||
for _, err := range results {
|
||||
if err != nil {
|
||||
return err
|
||||
return fmt.Errorf("bastion not healthy after update, stopping rolling-update: %q", err)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -169,7 +169,7 @@ func (c *RollingUpdateCluster) RollingUpdate(groups map[string]*cloudinstances.C
|
|||
// Do not continue update if master(s) failed, cluster is potentially in an unhealthy state
|
||||
for _, err := range results {
|
||||
if err != nil {
|
||||
return err
|
||||
return fmt.Errorf("master not healthy after update, stopping rolling-update: %q", err)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue