Skip to content

Commit

Permalink
Use reconcile option for rolling update
Browse files Browse the repository at this point in the history
  • Loading branch information
srikiz committed Oct 6, 2020
1 parent 919a837 commit a04ad19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/instancegroups/instancegroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,8 @@ func (c *RollingUpdateCluster) drainTerminateAndWait(u *cloudinstances.CloudInst
}

func (c *RollingUpdateCluster) reconcileInstanceGroup() error {
if api.CloudProviderID(c.Cluster.Spec.CloudProvider) != api.CloudProviderOpenstack {
if api.CloudProviderID(c.Cluster.Spec.CloudProvider) != api.CloudProviderOpenstack ||
api.CloudProviderID(c.Cluster.Spec.CloudProvider) != api.CloudProviderDO {
return nil
}
rto := fi.RunTasksOptions{}
Expand Down
1 change: 0 additions & 1 deletion pkg/resources/digitalocean/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ func (c *Cloud) DeleteGroup(g *cloudinstances.CloudInstanceGroup) error {
}

func (c *Cloud) DeleteInstance(i *cloudinstances.CloudInstance) error {
klog.Warning("This does not work without running kops update cluster --yes in another terminal")
dropletID, err := strconv.Atoi(i.ID)
if err != nil {
return fmt.Errorf("failed to convert droplet ID to int: %s", err)
Expand Down

0 comments on commit a04ad19

Please sign in to comment.