policy

package
v0.0.0-...-a94344e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExecutorNameVirtualNodeOnly = "VirtualNodeOnly"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	OnPodCreating(selector *resource.Selector, pod *v1.Pod) ([]PatchInfo, error)
	OnPodUnscheduled(selector *resource.Selector, pod *v1.Pod) (*utils.PatchOption, error)
}

func NewVirtualNodeOnlyExecutor

func NewVirtualNodeOnlyExecutor() Executor

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager() *Manager

func (*Manager) OnPodCreating

func (m *Manager) OnPodCreating(selector *resource.Selector, pod *v1.Pod) ([]PatchInfo, error)

func (*Manager) OnPodUnscheduled

func (m *Manager) OnPodUnscheduled(selector *resource.Selector, pod *v1.Pod) (*utils.PatchOption, error)

type PatchInfo

type PatchInfo struct {
	Op    string      `json:"op"`
	Path  string      `json:"path"`
	Value interface{} `json:"value"`
}

type VKTaint

type VKTaint struct {
	Key    string `json:"key"`
	Value  string `json:"value"`
	Effect string `json:"effect"`
}

type VirtualNodeOnlyExecutor

type VirtualNodeOnlyExecutor struct {
}

func (*VirtualNodeOnlyExecutor) OnPodCreating

func (e *VirtualNodeOnlyExecutor) OnPodCreating(selector *resource.Selector, pod *v1.Pod) ([]PatchInfo, error)

func (*VirtualNodeOnlyExecutor) OnPodUnscheduled

func (e *VirtualNodeOnlyExecutor) OnPodUnscheduled(selector *resource.Selector, pod *v1.Pod) (*utils.PatchOption, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL