Add dockershim only mode

This commit is contained in:
Random-Liu
2017-04-07 16:43:57 -07:00
parent 27cf62ac29
commit 327fc270d7
11 changed files with 113 additions and 0 deletions

View File

@@ -45,6 +45,13 @@ func main() {
verflag.PrintAndExitIfRequested()
if s.ExperimentalDockershim {
if err := app.RunDockershim(&s.KubeletConfiguration); err != nil {
fmt.Fprintf(os.Stderr, "error: %v\n", err)
os.Exit(1)
}
}
if err := app.Run(s, nil); err != nil {
fmt.Fprintf(os.Stderr, "error: %v\n", err)
os.Exit(1)