Skip to content

Commit

Permalink
fix daemonset creation (add selector)
Browse files Browse the repository at this point in the history
  • Loading branch information
realgam3 committed Jun 30, 2022
1 parent 1b040dd commit 06bb4f5
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 06bb4f5

Please sign in to comment.