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 c4131ee commit 1db1fc4Copy full SHA for 1db1fc4
pkg/cloud/azure/actuators/machine/actuator.go
@@ -54,6 +54,17 @@ func NewActuator(params ActuatorParams) *Actuator {
54
}
55
56
57
+// GetControlPlaneMachines retrieves all control plane nodes from a MachineList
58
+func GetControlPlaneMachines(machineList *clusterv1.MachineList) []*clusterv1.Machine {
59
+ var cpm []*clusterv1.Machine
60
+ for _, m := range machineList.Items {
61
+ if m.Spec.Versions.ControlPlane != "" {
62
+ cpm = append(cpm, m.DeepCopy())
63
+ }
64
65
+ return cpm
66
+}
67
+
68
// Create creates a machine and is invoked by the machine controller.
69
func (a *Actuator) Create(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) error {
70
if cluster == nil {
0 commit comments