INNER CODE UNIT · Go
initControllers
ceph/ceph-csi · cmd/cephcsi.go:330
func initControllers() {
// Add list of controller here.
persistentvolume.Init()
volumegroup.Init()
}
func validateCloneDepthFlag(conf *util.Config) {
// keeping hardlimit to 14 as max to avoid max image depth
if conf.RbdHardMaxCloneDepth == 0 || conf.RbdHardMaxCloneDepth > 14 {
logAndExit("rbdhardmaxclonedepth flag value should be between 1 and 14")
}
if conf.RbdSoftMaxCloneDepth > conf.RbdHardMaxCloneDepth {
logAndExit("rbdsoftmaxclonedepth flag value should not be greater than rbdhardmaxclonedepth")
}
}
func validateMaxSnapshotFlag(conf *util.Config) {