Documentation
¶
Overview ¶
Package meta defines shared metadata keys and naming rules used across Cocoon controllers, webhooks, dashboards, and providers.
Index ¶
- Constants
- func ConnectionType(osType string, hasVNCPort bool) string
- func DeploymentNameFromOwnerRefs(ownerRefs []metav1.OwnerReference) string
- func ExtractSlotFromVMName(vmName string) int
- func HasCocoonToleration(tolerations []corev1.Toleration) bool
- func InferRoleFromVMName(vmName string) string
- func MainAgentVMName(vmName string) string
- func VMNameForDeployment(namespace, deployment string, slot int) string
- func VMNameForPod(namespace, podName string) string
Constants ¶
View Source
const ( APIVersion = "cocoon.cis/v1alpha1" KindCocoonSet = "CocoonSet" TolerationKey = "virtual-kubelet.io/provider" LabelCocoonSet = "cocoon.cis/cocoonset" LabelRole = "cocoon.cis/role" LabelSlot = "cocoon.cis/slot" AnnotationMode = "cocoon.cis/mode" AnnotationImage = "cocoon.cis/image" AnnotationStorage = "cocoon.cis/storage" AnnotationManaged = "cocoon.cis/managed" AnnotationOS = "cocoon.cis/os" AnnotationForkFrom = "cocoon.cis/fork-from" AnnotationSnapshotPolicy = "cocoon.cis/snapshot-policy" AnnotationIP = "cocoon.cis/ip" AnnotationVMID = "cocoon.cis/vm-id" AnnotationVMName = "cocoon.cis/vm-name" AnnotationVNCPort = "cocoon.cis/vnc-port" AnnotationHibernate = "cocoon.cis/hibernate" RoleMain = "main" RoleSubAgent = "sub-agent" RoleToolbox = "toolbox" )
Variables ¶
This section is empty.
Functions ¶
func ConnectionType ¶
func DeploymentNameFromOwnerRefs ¶
func DeploymentNameFromOwnerRefs(ownerRefs []metav1.OwnerReference) string
func ExtractSlotFromVMName ¶
func HasCocoonToleration ¶
func HasCocoonToleration(tolerations []corev1.Toleration) bool
func InferRoleFromVMName ¶
func MainAgentVMName ¶
func VMNameForDeployment ¶
func VMNameForPod ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.