mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Add selector to DaemonSet in newDaemonSet function so that the v1 apis function for e2e
This commit is contained in:
parent
07240b7166
commit
afd3fc3ee9
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user