Make kpod parse configuration file

kpod must parse the crio configuration file or the storage
is not set up correctly.  By default it is not.  We now read
/etc/crio/crio.conf in as the configuration file unless it is
overriden by the user and the global -c|--config switch.

Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
baude 2017-08-28 13:05:03 -05:00
parent 378b9c0d2f
commit 266fc193e7
3 changed files with 16 additions and 5 deletions

View file

@ -8,6 +8,9 @@ import (
"github.com/kubernetes-incubator/cri-o/libkpod"
)
//CrioConfigPath is the default location for the conf file
const CrioConfigPath = "/etc/crio/crio.conf"
// Config represents the entire set of configuration values that can be set for
// the server. This is intended to be loaded from a toml-encoded config file.
type Config struct {