Better messaging for missing volume components on host to perform mount

This commit is contained in:
Rajat Ramesh Koujalagi
2016-11-03 12:15:52 -07:00
committed by rkouj
parent 3bd8704489
commit d81e216fc6
46 changed files with 3279 additions and 2975 deletions

View File

@@ -155,6 +155,13 @@ func (b *gitRepoVolumeMounter) GetAttributes() volume.Attributes {
}
}
// Checks prior to mount operations to verify that the required components (binaries, etc.)
// to mount the volume are available on the underlying node.
// If not, it returns an error
func (b *gitRepoVolumeMounter) CanMount() error {
return nil
}
// SetUp creates new directory and clones a git repo.
func (b *gitRepoVolumeMounter) SetUp(fsGroup *int64) error {
return b.SetUpAt(b.GetPath(), fsGroup)