Skip to content

Commit

Permalink
Install dbus if needed for protokube with kope.io
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsb authored and Ciprian Hacman committed Jan 21, 2021
1 parent def4bcf commit 232df08
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nodeup/pkg/model/protokube.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package model
import (
"bytes"
"fmt"
"k8s.io/kops/util/pkg/distributions"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -101,6 +102,13 @@ func (t *ProtokubeBuilder) Build(c *fi.ModelBuilderContext) error {
}
c.AddTask(service)

// DBUS is needed for the /var/run/dbus mount on kope.io images (based on Debian 9),
// at least until we can move to etcd-manager or start protokube as a service
// See https://github.com/kubernetes/kops/issues/10122#issuecomment-752969613
if t.Distribution == distributions.DistributionDebian9 {
c.AddTask(&nodetasks.Package{Name: "dbus"})
}

return nil
}

Expand Down

0 comments on commit 232df08

Please sign in to comment.