-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require providerSpec.Value[From] to be always set (#684)
Machines with no provider spec set have no use in a cluster (up to testing purposes). We need to make sure at least one of Value or ValueFrom fields is set. To avoid the case where: 1. a machine with a valid provider spec field is set 2. underlying cloud provider instance is created 3. the machine provider spec field is edited/cleared (for any reason) leaving empty provider spec 4. the machine is deleted without removing the underlying instance due to missing provider spec Right now, any machine object without provider spec field set can not be removed since the aws actuator complains about missing `ProviderSpec.Value` and `ProviderSpec.ValueFrom` fields missing. Though, it's not an option to remove machines without provider spec
- Loading branch information
1 parent
ee38e8a
commit f289c73
Showing
3 changed files
with
15 additions
and
0 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
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