From a3e841871ce35c4bd99e529a2d12dc84a2339588 Mon Sep 17 00:00:00 2001 From: Maciej Szulik Date: Mon, 28 May 2018 17:50:36 +0200 Subject: [PATCH] Add daemonset when to getReplicasFromRuntimeObject when cleaning objects in e2e --- test/e2e/framework/util.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index 5dc45815b6f..ad85097d340 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -3030,6 +3030,8 @@ func getReplicasFromRuntimeObject(obj runtime.Object) (int32, error) { return *typed.Spec.Replicas, nil } return 0, nil + case *extensions.DaemonSet: + return 0, nil case *batch.Job: // TODO: currently we use pause pods so that's OK. When we'll want to switch to Pods // that actually finish we need a better way to do this.