mirror of https://github.com/k3s-io/k3s
Merge pull request #74293 from lubinsz/pr_ds
Fix conformance daemon_set test failing in local clusterpull/564/head
commit
ee95a1a349
|
@ -377,7 +377,6 @@ var _ = SIGDescribe("Daemon set [Serial]", func() {
|
|||
if framework.TestContext.CloudConfig.NumNodes < 2 {
|
||||
framework.Logf("Conformance test suite needs a cluster with at least 2 nodes.")
|
||||
}
|
||||
|
||||
framework.Logf("Create a RollingUpdate DaemonSet")
|
||||
label := map[string]string{daemonsetNameLabel: dsName}
|
||||
ds := newDaemonSet(dsName, image, label)
|
||||
|
@ -415,7 +414,11 @@ var _ = SIGDescribe("Daemon set [Serial]", func() {
|
|||
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))
|
||||
|
||||
framework.Logf("Roll back the DaemonSet before rollout is complete")
|
||||
|
|
Loading…
Reference in New Issue