Add selector to DaemonSet in newDaemonSet function so that the v1 apis function for e2e

pull/6/head
Kenneth Owens 2018-03-01 14:49:22 -08:00
parent 07240b7166
commit afd3fc3ee9
1 changed files with 3 additions and 0 deletions

View File

@ -439,6 +439,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,