Add daemonset when to getReplicasFromRuntimeObject when cleaning objects in e2e

This commit is contained in:
Maciej Szulik 2018-05-28 17:50:36 +02:00
parent 4da73a5f3d
commit a3e841871c
No known key found for this signature in database
GPG Key ID: F15E55D276FA84C4

View File

@ -3030,6 +3030,8 @@ func getReplicasFromRuntimeObject(obj runtime.Object) (int32, error) {
return *typed.Spec.Replicas, nil return *typed.Spec.Replicas, nil
} }
return 0, nil return 0, nil
case *extensions.DaemonSet:
return 0, nil
case *batch.Job: case *batch.Job:
// TODO: currently we use pause pods so that's OK. When we'll want to switch to Pods // 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. // that actually finish we need a better way to do this.