Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/extended/machine_config/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ func GetRolesToTest(oc *exutil.CLI, machineConfigClient *machineconfigclient.Cli
mcps, mcpErr := machineConfigClient.MachineconfigurationV1().MachineConfigPools().List(context.TODO(), metav1.ListOptions{})
o.Expect(mcpErr).NotTo(o.HaveOccurred(), "Error getting MCPs.")

// For any MCP with machines, add the MCP name as a role to test.
/// For any MCP with machines where all machines are ready, add the MCP name as a role to test.
var rolesToTest []string
for _, mcp := range mcps.Items {
if mcp.Status.MachineCount > 0 {
if mcp.Status.MachineCount > 0 && mcp.Status.ReadyMachineCount == mcp.Status.MachineCount {
rolesToTest = append(rolesToTest, mcp.Name)
}
}
Expand Down