mirror of https://github.com/kubernetes/kops.git
Set lifecycle on Droplet task
This commit is contained in:
parent
04db0c9507
commit
2badc381c4
|
@ -55,18 +55,20 @@ func (d *DropletBuilder) Build(c *fi.ModelBuilderContext) error {
|
|||
for _, ig := range d.InstanceGroups {
|
||||
name := d.AutoscalingGroupName(ig)
|
||||
|
||||
var droplet dotasks.Droplet
|
||||
droplet.Count = int(fi.Int32Value(ig.Spec.MinSize))
|
||||
droplet.Name = fi.String(name)
|
||||
droplet := dotasks.Droplet{
|
||||
Count: int(fi.Int32Value(ig.Spec.MinSize)),
|
||||
Name: fi.String(name),
|
||||
Lifecycle: d.Lifecycle,
|
||||
|
||||
// during alpha support we only allow 1 region
|
||||
// validation for only 1 region is done at this point
|
||||
droplet.Region = fi.String(d.Cluster.Spec.Subnets[0].Region)
|
||||
droplet.Size = fi.String(ig.Spec.MachineType)
|
||||
droplet.Image = fi.String(ig.Spec.Image)
|
||||
droplet.SSHKey = fi.String(sshKeyFingerPrint)
|
||||
// during alpha support we only allow 1 region
|
||||
// validation for only 1 region is done at this point
|
||||
Region: fi.String(d.Cluster.Spec.Subnets[0].Region),
|
||||
Size: fi.String(ig.Spec.MachineType),
|
||||
Image: fi.String(ig.Spec.Image),
|
||||
SSHKey: fi.String(sshKeyFingerPrint),
|
||||
|
||||
droplet.Tags = []string{clusterTag}
|
||||
Tags: []string{clusterTag},
|
||||
}
|
||||
|
||||
if ig.IsMaster() {
|
||||
masterIndexCount++
|
||||
|
|
Loading…
Reference in New Issue