mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Merge pull request #60672 from kow3ns/fix-60003
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add selector to DaemonSet in newDaemonSet function so that the v1 api… **What this PR does / why we need it**: When we upgraded the DaemonSet e2e to use apps v1 I neglected to add a selector to match the labels of the created Pods. This broke some apps Serial tests. ```release-note NONE ```
This commit is contained in:
commit
a456d1cec2
@ -466,6 +466,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