mirror of https://github.com/kubernetes/kops.git
				
				
				
			Update upup/pkg/fi/cloudup/awstasks/launchtemplate_target_api.go
Co-authored-by: Peter Rifel <rifelpet@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									a43aa2d74e
								
							
						
					
					
						commit
						60dab58486
					
				|  | @ -232,7 +232,7 @@ func (t *LaunchTemplate) Find(c *fi.Context) (*LaunchTemplate, error) { | ||||||
| 		actual.IAMInstanceProfile = &IAMInstanceProfile{Name: lt.LaunchTemplateData.IamInstanceProfile.Name} | 		actual.IAMInstanceProfile = &IAMInstanceProfile{Name: lt.LaunchTemplateData.IamInstanceProfile.Name} | ||||||
| 	} | 	} | ||||||
| 	// @step: add instanceInterruptionBehavior if there is one
 | 	// @step: add instanceInterruptionBehavior if there is one
 | ||||||
| 	if lt.LaunchTemplateData.InstanceMarketOptions.SpotOptions != nil { | 	if lt.LaunchTemplateData.InstanceMarketOptions != nil && lt.LaunchTemplateData.InstanceMarketOptions.SpotOptions != nil { | ||||||
| 		actual.InstanceInterruptionBehavior = lt.LaunchTemplateData.InstanceMarketOptions.SpotOptions.InstanceInterruptionBehavior | 		actual.InstanceInterruptionBehavior = lt.LaunchTemplateData.InstanceMarketOptions.SpotOptions.InstanceInterruptionBehavior | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue