Documentation ¶
Index ¶
- type SetHandler
- func (setHandler *SetHandler) CreateController() cache.Controller
- func (setHandler *SetHandler) PodAdded(pod v1.Pod)
- func (setHandler *SetHandler) PodChanged(oldPod, newPod v1.Pod)
- func (setHandler SetHandler) SetHandler() SetHandler
- func (setHandler *SetHandler) SetSetHandler(poolconf types.PoolConfig, cpusetRoot string, k8sClient kubernetes.Interface)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SetHandler ¶
type SetHandler struct {
// contains filtered or unexported fields
}
SetHandler is the data set encapsulating the configuration data needed for the CPUSetter Controller to be able to adjust cpusets
func New ¶
func New(kubeConf string, poolConfig types.PoolConfig, cpusetRoot string) (*SetHandler, error)
New creates a new SetHandler object Can return error if in-cluster K8s API server client could not be initialized
func (*SetHandler) CreateController ¶
func (setHandler *SetHandler) CreateController() cache.Controller
CreateController takes the K8s client from the SetHandler object, and uses it to create a single thread K8s Controller The Controller registers eventhandlers for ADD and UPDATE operations happening in the core/v1/Pod API
func (*SetHandler) PodAdded ¶ added in v0.3.1
func (setHandler *SetHandler) PodAdded(pod v1.Pod)
PodAdded handles ADD operations
func (*SetHandler) PodChanged ¶ added in v0.3.1
func (setHandler *SetHandler) PodChanged(oldPod, newPod v1.Pod)
PodChanged handles UPDATE operations
func (SetHandler) SetHandler ¶ added in v0.3.1
func (setHandler SetHandler) SetHandler() SetHandler
SetHandler returns the SetHandler data set
func (*SetHandler) SetSetHandler ¶ added in v0.3.1
func (setHandler *SetHandler) SetSetHandler(poolconf types.PoolConfig, cpusetRoot string, k8sClient kubernetes.Interface)
SetSetHandler a setter for SetHandler
Click to show internal directories.
Click to hide internal directories.