Skip to content

Commit ded1cd7

Browse files
authored
Merge pull request kubernetes-sigs#9540 from willie-yao/self-hosted-fix
🌱 Add WaitForMachinePoolToBeUpgraded to self-hosted test
2 parents c2afac3 + c245174 commit ded1cd7

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

test/e2e/self_hosted.go

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -311,18 +311,19 @@ func SelfHostedSpec(ctx context.Context, inputGetter func() SelfHostedSpecInput)
311311
// Cluster is using ClusterClass, upgrade via topology.
312312
By("Upgrading the Cluster topology")
313313
framework.UpgradeClusterTopologyAndWaitForUpgrade(ctx, framework.UpgradeClusterTopologyAndWaitForUpgradeInput{
314-
ClusterProxy: selfHostedClusterProxy,
315-
Cluster: clusterResources.Cluster,
316-
ControlPlane: clusterResources.ControlPlane,
317-
EtcdImageTag: input.E2EConfig.GetVariable(EtcdVersionUpgradeTo),
318-
DNSImageTag: input.E2EConfig.GetVariable(CoreDNSVersionUpgradeTo),
319-
MachineDeployments: clusterResources.MachineDeployments,
320-
MachinePools: clusterResources.MachinePools,
321-
KubernetesUpgradeVersion: input.E2EConfig.GetVariable(KubernetesVersionUpgradeTo),
322-
WaitForMachinesToBeUpgraded: input.E2EConfig.GetIntervals(specName, "wait-machine-upgrade"),
323-
WaitForKubeProxyUpgrade: input.E2EConfig.GetIntervals(specName, "wait-machine-upgrade"),
324-
WaitForDNSUpgrade: input.E2EConfig.GetIntervals(specName, "wait-machine-upgrade"),
325-
WaitForEtcdUpgrade: input.E2EConfig.GetIntervals(specName, "wait-machine-upgrade"),
314+
ClusterProxy: selfHostedClusterProxy,
315+
Cluster: clusterResources.Cluster,
316+
ControlPlane: clusterResources.ControlPlane,
317+
EtcdImageTag: input.E2EConfig.GetVariable(EtcdVersionUpgradeTo),
318+
DNSImageTag: input.E2EConfig.GetVariable(CoreDNSVersionUpgradeTo),
319+
MachineDeployments: clusterResources.MachineDeployments,
320+
MachinePools: clusterResources.MachinePools,
321+
KubernetesUpgradeVersion: input.E2EConfig.GetVariable(KubernetesVersionUpgradeTo),
322+
WaitForMachinesToBeUpgraded: input.E2EConfig.GetIntervals(specName, "wait-machine-upgrade"),
323+
WaitForMachinePoolToBeUpgraded: input.E2EConfig.GetIntervals(specName, "wait-machine-pool-upgrade"),
324+
WaitForKubeProxyUpgrade: input.E2EConfig.GetIntervals(specName, "wait-machine-upgrade"),
325+
WaitForDNSUpgrade: input.E2EConfig.GetIntervals(specName, "wait-machine-upgrade"),
326+
WaitForEtcdUpgrade: input.E2EConfig.GetIntervals(specName, "wait-machine-upgrade"),
326327
})
327328
} else {
328329
// Cluster is not using ClusterClass, upgrade via individual resources.

0 commit comments

Comments
 (0)