mirror of https://github.com/kubernetes/kops.git
Continue to log if an error is encountered, separate the exit check
This commit is contained in:
parent
f5f71f17f9
commit
dfd9516a4f
|
@ -188,7 +188,11 @@ func (c *RollingUpdateCluster) RollingUpdate(groups map[string]*cloudinstances.C
|
|||
|
||||
for _, k := range sortGroups(apiServerGroups) {
|
||||
err := c.rollingUpdateInstanceGroup(apiServerGroups[k], c.NodeInterval)
|
||||
if err != nil && isExitableError(err) {
|
||||
if err != nil {
|
||||
klog.Errorf("failed to roll InstanceGroup %q: %v", k, err)
|
||||
}
|
||||
|
||||
if isExitableError(err) {
|
||||
return err
|
||||
}
|
||||
|
||||
|
@ -210,7 +214,11 @@ func (c *RollingUpdateCluster) RollingUpdate(groups map[string]*cloudinstances.C
|
|||
|
||||
for _, k := range sortGroups(nodeGroups) {
|
||||
err := c.rollingUpdateInstanceGroup(nodeGroups[k], c.NodeInterval)
|
||||
if err != nil && isExitableError(err) {
|
||||
if err != nil {
|
||||
klog.Errorf("failed to roll InstanceGroup %q: %v", k, err)
|
||||
}
|
||||
|
||||
if isExitableError(err) {
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue