Skip to content

Commit

Permalink
Add nodeTemplate element to MachineClass chart
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Topping <[email protected]>
  • Loading branch information
briantopping committed Jul 26, 2023
1 parent 94fb98f commit ca8114d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/controller/worker/machines.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,15 @@ func (w *workerDelegate) generateMachineConfig(ctx context.Context) error {
secretMap[k] = string(v)
}

if pool.NodeTemplate != nil {
machineClassSpec["nodeTemplate"] = machinev1alpha1.NodeTemplate{
Capacity: pool.NodeTemplate.Capacity,
InstanceType: pool.MachineType,
Region: w.worker.Spec.Region,
Zone: zone,
}
}

machineClasses = append(machineClasses, machineClassSpec)
}
}
Expand Down

0 comments on commit ca8114d

Please sign in to comment.