Documentation
¶
Index ¶
- Constants
- func CPUFeatureLabelsFromCPUFeatures(vmi *v1.VirtualMachineInstance) []string
- func CPUModelLabelFromCPUModel(vmi *v1.VirtualMachineInstance) (label string, err error)
- func HaveMasqueradeInterface(interfaces []v1.Interface) bool
- 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 CAP_SYS_RESOURCE = "SYS_RESOURCE"
View Source
const GenieNetworksAnnotation = "cni"
View Source
const ISTIO_KUBEVIRT_ANNOTATION = "traffic.sidecar.istio.io/kubevirtInterfaces"
Istio list of virtual interfaces whose inbound traffic (from VM) will be treated as outbound traffic in envoy
View Source
const KvmDevice = "devices.kubevirt.io/kvm"
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_DEFAULT_NETWORK_CNI_ANNOTATION = "v1.multus-cni.io/default-network"
View Source
const MULTUS_RESOURCE_NAME_ANNOTATION = "k8s.v1.cni.cncf.io/resourceName"
View Source
const MultusNetworksAnnotation = "k8s.v1.cni.cncf.io/networks"
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 NFD_KVM_INFO_PREFIX = "feature.node.kubernetes.io/kvm-info-cap-hyperv-"
View Source
const TunDevice = "devices.kubevirt.io/tun"
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 HaveMasqueradeInterface ¶ added in v0.16.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 ¶
func NewTemplateService(launcherImage string, virtShareDir string, virtLibDir string, ephemeralDiskDir string, containerDiskDir string, imagePullSecret string, persistentVolumeClaimCache cache.Store, virtClient kubecli.KubevirtClient, clusterConfig *virtconfig.ClusterConfig) TemplateService
Click to show internal directories.
Click to hide internal directories.