From 7443263bd66d1d0b238ee76bf8abcd4c83874b3b Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Fri, 14 Jul 2017 15:31:50 -0700 Subject: [PATCH] Add config for ImageVolumesBind option Signed-off-by: Mrunal Patel --- cmd/crio/main.go | 1 + server/config.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cmd/crio/main.go b/cmd/crio/main.go index 602d8174..a0ab09d2 100644 --- a/cmd/crio/main.go +++ b/cmd/crio/main.go @@ -26,6 +26,7 @@ func validateConfig(config *server.Config) error { switch config.ImageVolumes { case server.ImageVolumesMkdir: case server.ImageVolumesIgnore: + case server.ImageVolumesBind: default: return fmt.Errorf("Unrecognized image volume type specified") diff --git a/server/config.go b/server/config.go index c158b043..2702d651 100644 --- a/server/config.go +++ b/server/config.go @@ -41,6 +41,8 @@ const ( ImageVolumesMkdir ImageVolumesType = "mkdir" // ImageVolumesIgnore option is for ignoring image volumes altogether ImageVolumesIgnore ImageVolumesType = "ignore" + // ImageVolumesBind option is for using bind mounted volumes + ImageVolumesBind ImageVolumesType = "bind" ) const (