mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #74293 from lubinsz/pr_ds
Fix conformance daemon_set test failing in local cluster
This commit is contained in:
commit
ee95a1a349
@ -377,7 +377,6 @@ var _ = SIGDescribe("Daemon set [Serial]", func() {
|
|||||||
if framework.TestContext.CloudConfig.NumNodes < 2 {
|
if framework.TestContext.CloudConfig.NumNodes < 2 {
|
||||||
framework.Logf("Conformance test suite needs a cluster with at least 2 nodes.")
|
framework.Logf("Conformance test suite needs a cluster with at least 2 nodes.")
|
||||||
}
|
}
|
||||||
|
|
||||||
framework.Logf("Create a RollingUpdate DaemonSet")
|
framework.Logf("Create a RollingUpdate DaemonSet")
|
||||||
label := map[string]string{daemonsetNameLabel: dsName}
|
label := map[string]string{daemonsetNameLabel: dsName}
|
||||||
ds := newDaemonSet(dsName, image, label)
|
ds := newDaemonSet(dsName, image, label)
|
||||||
@ -415,7 +414,11 @@ var _ = SIGDescribe("Daemon set [Serial]", func() {
|
|||||||
framework.Failf("unexpected pod found, image = %s", image)
|
framework.Failf("unexpected pod found, image = %s", image)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Expect(len(existingPods)).NotTo(Equal(0))
|
if framework.TestContext.CloudConfig.NumNodes < 2 {
|
||||||
|
Expect(len(existingPods)).To(Equal(0))
|
||||||
|
} else {
|
||||||
|
Expect(len(existingPods)).NotTo(Equal(0))
|
||||||
|
}
|
||||||
Expect(len(newPods)).NotTo(Equal(0))
|
Expect(len(newPods)).NotTo(Equal(0))
|
||||||
|
|
||||||
framework.Logf("Roll back the DaemonSet before rollout is complete")
|
framework.Logf("Roll back the DaemonSet before rollout is complete")
|
||||||
|
Loading…
Reference in New Issue
Block a user