Skip to content

Commit

Permalink
Merge pull request #7071 from zetaab/feature/debian10
Browse files Browse the repository at this point in the history
Add Debian 10 (buster) support
  • Loading branch information
k8s-ci-robot authored Jun 7, 2019
2 parents bd74205 + 6075613 commit 02cb57e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
9 changes: 5 additions & 4 deletions nodeup/pkg/distros/distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type Distribution string
var (
DistributionJessie Distribution = "jessie"
DistributionDebian9 Distribution = "debian9"
DistributionDebian10 Distribution = "buster"
DistributionXenial Distribution = "xenial"
DistributionBionic Distribution = "bionic"
DistributionRhel7 Distribution = "rhel7"
Expand All @@ -40,7 +41,7 @@ func (d Distribution) BuildTags() []string {
switch d {
case DistributionJessie:
t = []string{"_jessie"}
case DistributionDebian9:
case DistributionDebian9, DistributionDebian10:
t = []string{} // trying to move away from tags
case DistributionXenial:
t = []string{"_xenial"}
Expand Down Expand Up @@ -74,7 +75,7 @@ func (d Distribution) BuildTags() []string {

func (d Distribution) IsDebianFamily() bool {
switch d {
case DistributionJessie, DistributionXenial, DistributionBionic, DistributionDebian9:
case DistributionJessie, DistributionXenial, DistributionBionic, DistributionDebian9, DistributionDebian10:
return true
case DistributionCentos7, DistributionRhel7:
return false
Expand All @@ -90,7 +91,7 @@ func (d Distribution) IsRHELFamily() bool {
switch d {
case DistributionCentos7, DistributionRhel7:
return true
case DistributionJessie, DistributionXenial, DistributionBionic, DistributionDebian9:
case DistributionJessie, DistributionXenial, DistributionBionic, DistributionDebian9, DistributionDebian10:
return false
case DistributionCoreOS, DistributionContainerOS:
return false
Expand All @@ -102,7 +103,7 @@ func (d Distribution) IsRHELFamily() bool {

func (d Distribution) IsSystemd() bool {
switch d {
case DistributionJessie, DistributionXenial, DistributionBionic, DistributionDebian9:
case DistributionJessie, DistributionXenial, DistributionBionic, DistributionDebian9, DistributionDebian10:
return true
case DistributionCentos7, DistributionRhel7:
return true
Expand Down
2 changes: 2 additions & 0 deletions nodeup/pkg/distros/identify.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ func FindDistribution(rootfs string) (Distribution, error) {
return DistributionJessie, nil
} else if strings.HasPrefix(debianVersion, "9.") {
return DistributionDebian9, nil
} else if strings.HasPrefix(debianVersion, "10.") {
return DistributionDebian10, nil
} else {
return "", fmt.Errorf("unhandled debian version %q", debianVersion)
}
Expand Down
13 changes: 13 additions & 0 deletions nodeup/pkg/model/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,19 @@ var dockerVersions = []dockerVersion{
Dependencies: []string{"bridge-utils", "libapparmor1", "libltdl7", "perl"},
},

// 18.06.3 - Debian Buster
{

DockerVersion: "18.06.3",
Name: "docker-ce",
Distros: []distros.Distribution{distros.DistributionDebian10},
Architectures: []Architecture{ArchitectureAmd64},
Version: "18.06.3~ce~3-0~debian",
Source: "https://download.docker.com/linux/debian/dists/buster/pool/stable/amd64/docker-ce_18.06.3~ce~3-0~debian_amd64.deb",
Hash: "05c9b098437bcf1b489c2a3a9764c3b779af7bc4",
Dependencies: []string{"bridge-utils", "libapparmor1", "libltdl7", "perl"},
},

// 18.06.2 - Jessie
{
DockerVersion: "18.06.2",
Expand Down
2 changes: 1 addition & 1 deletion nodeup/pkg/model/kubectl.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (b *KubectlBuilder) Build(c *fi.ModelBuilderContext) error {
func (b *KubectlBuilder) findKubeconfigUser() (*fi.User, *fi.Group, error) {
var users []string
switch b.Distribution {
case distros.DistributionJessie, distros.DistributionDebian9:
case distros.DistributionJessie, distros.DistributionDebian9, distros.DistributionDebian10:
users = []string{"admin", "root"}
case distros.DistributionCentos7:
users = []string{"centos"}
Expand Down

0 comments on commit 02cb57e

Please sign in to comment.