We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b93e00 commit be72cedCopy full SHA for be72ced
pkg/cloudprovider/provider/aws/provider.go
@@ -633,6 +633,12 @@ func (p *provider) Validate(spec clusterv1alpha1.MachineSpec) error {
633
return fmt.Errorf("failed to validate instance profile: %v", err)
634
}
635
636
+ if config.IsSpotInstance != nil && *config.IsSpotInstance {
637
+ if config.SpotMaxPrice == nil {
638
+ return errors.New("failed to validate max price for the spot instance: max price cannot be empty when spot instance ")
639
+ }
640
641
+
642
return nil
643
644
0 commit comments