diff --git a/test/e2e/apps/daemon_set.go b/test/e2e/apps/daemon_set.go index eeacc5c0009..2fe03845904 100644 --- a/test/e2e/apps/daemon_set.go +++ b/test/e2e/apps/daemon_set.go @@ -466,6 +466,9 @@ func newDaemonSet(dsName, image string, label map[string]string) *apps.DaemonSet Name: dsName, }, Spec: apps.DaemonSetSpec{ + Selector: &metav1.LabelSelector{ + MatchLabels: label, + }, Template: v1.PodTemplateSpec{ ObjectMeta: metav1.ObjectMeta{ Labels: label,