Documentation ¶
Index ¶
- Constants
- func CPUFeatureLabelsFromCPUFeatures(vmi *v1.VirtualMachineInstance) []string
- 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)
- func SetNodeAffinityForForbiddenFeaturePolicy(vmi *v1.VirtualMachineInstance, pod *k8sv1.Pod)
- 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_FEATURE_PREFIX = "feature.node.kubernetes.io/cpu-feature-"
View Source
const NFD_CPU_MODEL_PREFIX = "feature.node.kubernetes.io/cpu-model-"
These perfixes for node feature discovery, are used in a NodeSelector on the pod to match a VirtualMachineInstance CPU model(Family) and/or features to nodes that support them.
View Source
const NodeSelectorsKey = "node-selectors"
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 CPUFeatureLabelsFromCPUFeatures ¶ added in v0.15.0
func CPUFeatureLabelsFromCPUFeatures(vmi *v1.VirtualMachineInstance) []string
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
func IsEmulationAllowed ¶ added in v0.6.0
func SetNodeAffinityForForbiddenFeaturePolicy ¶ added in v0.15.0
func SetNodeAffinityForForbiddenFeaturePolicy(vmi *v1.VirtualMachineInstance, pod *k8sv1.Pod)
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.