Add selector to DaemonSet in newDaemonSet function so that the v1 apis function for e2e
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user