mirror of https://github.com/k3s-io/k3s
Add selector to DaemonSet in newDaemonSet function so that the v1 apis function for e2e
parent
07240b7166
commit
afd3fc3ee9
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue