Commit afd3fc3e authored by Kenneth Owens's avatar Kenneth Owens

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

parent 07240b71
...@@ -439,6 +439,9 @@ func newDaemonSet(dsName, image string, label map[string]string) *apps.DaemonSet ...@@ -439,6 +439,9 @@ func newDaemonSet(dsName, image string, label map[string]string) *apps.DaemonSet
Name: dsName, Name: dsName,
}, },
Spec: apps.DaemonSetSpec{ Spec: apps.DaemonSetSpec{
Selector: &metav1.LabelSelector{
MatchLabels: label,
},
Template: v1.PodTemplateSpec{ Template: v1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{ ObjectMeta: metav1.ObjectMeta{
Labels: label, Labels: label,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment