Skip to content

Commit

Permalink
Merge pull request #1512 from realgam3/master
Browse files Browse the repository at this point in the history
fix daemonset creation (add selector)
  • Loading branch information
k8s-ci-robot authored Aug 23, 2022
2 parents 6512dd3 + 06bb4f5 commit 9055f21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/transformer/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,9 @@ func (k *Kubernetes) InitDS(name string, service kobject.ServiceConfig) *appsv1.
Labels: transformer.ConfigAllLabels(name, &service),
},
Spec: appsv1.DaemonSetSpec{
Selector: &metav1.LabelSelector{
MatchLabels: transformer.ConfigLabels(name),
},
Template: api.PodTemplateSpec{
Spec: k.InitPodSpec(name, service.Image, service.ImagePullSecret),
},
Expand Down

0 comments on commit 9055f21

Please sign in to comment.