Documentation ¶
Index ¶
- Constants
- func CPUModelLabelFromCPUModel(vmi *v1.VirtualMachineInstance) (label string, err error)
- func GetImagePullPolicy(store cache.Store) (policy k8sv1.PullPolicy, err error)
- func GetlessPVCSpaceToleration(store cache.Store) (toleration int, err error)
- func IsCPUNodeDiscoveryEnabled(store cache.Store) bool
- func IsEmulationAllowed(store cache.Store) (useEmulation bool, err error)
- type PvcNotFoundError
- type TemplateService
Constants ¶
View Source
const CAP_NET_ADMIN = "NET_ADMIN"
View Source
const CAP_SYS_NICE = "SYS_NICE"
View Source
const ImagePullPolicyKey = "dev.imagePullPolicy"
View Source
const KvmDevice = "devices.kubevirt.io/kvm"
View Source
const LessPVCSpaceTolerationKey = "pvc-tolerate-less-space-up-to-percent"
View Source
const LibvirtStartupDelay = 10
LibvirtStartupDelay is added to custom liveness and readiness probes initial delay value. Libvirt needs roughly 10 seconds to start.
View Source
const MULTUS_RESOURCE_NAME_ANNOTATION = "k8s.v1.cni.cncf.io/resourceName"
View Source
const NFD_CPU_MODEL_PREFIX = "feature.node.kubernetes.io/cpu-model-"
This is a perfix for node feature discovery, used in a NodeSelector on the pod to match a VirtualMachineInstance CPU model(Family) to nodes that support this model.
View Source
const TunDevice = "devices.kubevirt.io/tun"
View Source
const UseEmulationKey = "debug.useEmulation"
View Source
const VhostNetDevice = "devices.kubevirt.io/vhost-net"
Variables ¶
This section is empty.
Functions ¶
func CPUModelLabelFromCPUModel ¶ added in v0.11.1
func CPUModelLabelFromCPUModel(vmi *v1.VirtualMachineInstance) (label string, err error)
func GetImagePullPolicy ¶ added in v0.8.0
func GetImagePullPolicy(store cache.Store) (policy k8sv1.PullPolicy, err error)
func GetlessPVCSpaceToleration ¶ added in v0.9.6
func IsCPUNodeDiscoveryEnabled ¶ added in v0.11.1
Types ¶
type PvcNotFoundError ¶ added in v0.9.0
type PvcNotFoundError error
type TemplateService ¶
type TemplateService interface {
RenderLaunchManifest(*v1.VirtualMachineInstance) (*k8sv1.Pod, error)
}
func NewTemplateService ¶
Click to show internal directories.
Click to hide internal directories.