Documentation ¶
Index ¶
- Constants
- Variables
- func IsPodReady(pod *corev1.Pod) bool
- func MakeEnvVar(name, value string, valueFrom *corev1.EnvVarSource) corev1.EnvVar
- func MakeEnvVarFieldPath(name, fieldPath string) corev1.EnvVar
- func MakeHostStateVol(vmName, volName string) corev1.Volume
- func MakePvcVol(name, pvcname string) corev1.Volume
- func MakeVolEmptyDir(name string) corev1.Volume
- func MakeVolEmptyDirHugePages(name string) corev1.Volume
- func MakeVolFieldPath(name, path, fieldPath string) corev1.Volume
- func MakeVolHostPath(name, path string) corev1.Volume
- func MakeVolumeMount(name, mountPath, subPath string, readOnly bool) corev1.VolumeMount
Constants ¶
View Source
const ( HostStateBaseDir = "/var/lib/rancher/vm" FinalizerDeletion = "deletion.vm.rancher.io" NamespaceVM = "default" NameDelimiter = "-" RancherOUI = "06:fe" LabelApp = "ranchervm" LabelRoleMigrate = "migrate" LabelRoleVM = "vm" LabelRoleNoVNC = "novnc" LabelRoleMachineImage = "machineimage" LabelNodeHostname = "kubernetes.io/hostname" )
Variables ¶
Functions ¶
func IsPodReady ¶
IsPodReady returns the PodReady condition status as a boolean
func MakeEnvVar ¶
func MakeEnvVar(name, value string, valueFrom *corev1.EnvVarSource) corev1.EnvVar
func MakeEnvVarFieldPath ¶
func MakeHostStateVol ¶
func MakePvcVol ¶ added in v0.2.0
func MakeVolEmptyDir ¶
func MakeVolEmptyDirHugePages ¶ added in v0.2.0
func MakeVolFieldPath ¶
func MakeVolHostPath ¶
func MakeVolumeMount ¶
func MakeVolumeMount(name, mountPath, subPath string, readOnly bool) corev1.VolumeMount
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.