Merge pull request #2166 from justinsb/touch_kubeapiserver_log_to_code

Move touching kubeapiserver log file to code
This commit is contained in:
Eric Hole 2017-04-09 09:51:29 -04:00 committed by GitHub
commit c3b794edcd
3 changed files with 12 additions and 3 deletions

View File

@ -61,6 +61,18 @@ func (b *KubeAPIServerBuilder) Build(c *fi.ModelBuilderContext) error {
c.AddTask(t)
}
// Touch log file, so that docker doesn't create a directory instead
{
t := &nodetasks.File{
Path: "/var/log/kube-apiserver.log",
Contents: fi.NewStringResource(""),
Type: nodetasks.FileType_File,
Mode: s("0400"),
IfNotExists: true,
}
c.AddTask(t)
}
return nil
}