forked from kubernetes-sigs/cluster-api-provider-aws
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Update correctly consider existing vs running
This commit brings the existing vs running logic of Update to be similar to what we do with Create. This commit changes getRunningInstances function to only consider 'running' status as running, removes 'pending' from valid running statuses. This commit also removes logic that deletes older running instances in the unusual case where there is more than one instance running with same tag Name. Any instances, including extras/duplicates with same tag Name will still be deleted when machine-object is deleted.
- Loading branch information
1 parent
57f8907
commit bd70685
Showing
2 changed files
with
39 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters