kubernetes/pkg/kubelet/cm/cpumanager/policy_none.go

type nonePolicy

var _

const PolicyNone

// NewNonePolicy returns a cpuset manager policy that does nothing
func NewNonePolicy(cpuPolicyOptions map[string]string) (Policy, error) {}

func (p *nonePolicy) Name() string {}

func (p *nonePolicy) Start(s state.State) error {}

func (p *nonePolicy) Allocate(s state.State, pod *v1.Pod, container *v1.Container) error {}

func (p *nonePolicy) RemoveContainer(s state.State, podUID string, containerName string) error {}

func (p *nonePolicy) GetTopologyHints(s state.State, pod *v1.Pod, container *v1.Container) map[string][]topologymanager.TopologyHint {}

func (p *nonePolicy) GetPodTopologyHints(s state.State, pod *v1.Pod) map[string][]topologymanager.TopologyHint {}

// Assignable CPUs are the ones that can be exclusively allocated to pods that meet the exclusivity requirement
// (ie guaranteed QoS class and integral CPU request).
// Assignability of CPUs as a concept is only applicable in case of static policy i.e. scenarios where workloads
// CAN get exclusive access to core(s).
// Hence, we return empty set here: no cpus are assignable according to above definition with this policy.
func (p *nonePolicy) GetAllocatableCPUs(m state.State) cpuset.CPUSet {}