services

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: Apache-2.0 Imports: 20 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_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 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)

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