Skip to content

Commit

Permalink
Merge pull request #161 from aaliddell/master
Browse files Browse the repository at this point in the history
Enforce lower case hostname for node
  • Loading branch information
ibuildthecloud authored Mar 5, 2019
2 parents 36370fd + b430513 commit 10be950
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/agent/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"os"
"os/exec"
"path/filepath"
"strings"
"time"

"github.com/pkg/errors"
Expand Down Expand Up @@ -90,6 +91,10 @@ func getHostnameAndIP(info cmds.Agent) (string, string, error) {
name = hostname
}

// Use lower case hostname to comply with kubernetes constraint:
// https://github.com/kubernetes/kubernetes/issues/71140
name = strings.ToLower(name)

return name, ip, nil
}

Expand Down

0 comments on commit 10be950

Please sign in to comment.