services

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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 GetlessPVCSpaceToleration(store cache.Store) (toleration int, err error)

func IsCPUNodeDiscoveryEnabled added in v0.11.1

func IsCPUNodeDiscoveryEnabled(store cache.Store) bool

func IsEmulationAllowed added in v0.6.0

func IsEmulationAllowed(store cache.Store) (useEmulation bool, err error)

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,
	ephemeralDiskDir string,
	imagePullSecret string,
	configMapCache cache.Store,
	persistentVolumeClaimCache cache.Store,
	virtClient kubecli.KubevirtClient) TemplateService

Jump to

Keyboard shortcuts

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