func (o *options) ControllerMode(name string) mode {
	if m, ok := o.Controllers[name]; ok {
		return m
	}
	return Default
}
ControllerMode returns the current mode for the given controller.
package control
import (
	"encoding/json"
	"fmt"
	"github.com/intel/cri-resource-manager/pkg/config"
	"strings"
)
type options struct {
	Controllers map[string]mode
}
var opt = defaultOptions().(*options)
type mode int
const (
	Disabled mode = iota
	Required
	Optional
	Relaxed
	Default = Relaxed
)