Add runtime cgroup and fix a cli panic.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu
2018-01-25 22:01:05 +00:00
parent 11042a4141
commit e7f2a74a84
8 changed files with 59 additions and 52 deletions

2
cri.go
View File

@@ -52,7 +52,7 @@ func init() {
func initCRIService(ic *plugin.InitContext) (interface{}, error) {
ctx := ic.Context
pluginConfig := ic.Config.(*options.PluginConfig)
c := options.CRIConfig{
c := options.Config{
PluginConfig: *pluginConfig,
// This is a hack. We assume that containerd root directory
// is one level above plugin directory.