mirror of https://github.com/k3s-io/k3s
Fix conformance daemon_set test failing in local cluster
Fixing up conformance test related to: 1, ci-k8s-conformance-arm64-aws-cluster https://storage.googleapis.com/k8s-conformance-arm/logs/ci-k8s-conformance-arm64-aws-cluster/84/build-log.txt 2, conformance test results for ppc64le https://storage.googleapis.com/ppc64le-kubernetes/logs/ci-conformance-kubernetes/2809/build-log.txt Signed-off-by: Bin Lu <bin.lu@arm.com>pull/564/head
parent
ad403f8e20
commit
ab165fc6e5
|
@ -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