Documentation
¶
Index ¶
- Variables
- func CreateIngress(labInstance *ltbv1alpha1.LabInstance, node *ltbv1alpha1.LabInstanceNodes, ...) (*networkingv1.Ingress, error)
- func CreatePod(labInstance *ltbv1alpha1.LabInstance, node *ltbv1alpha1.LabInstanceNodes) (*corev1.Pod, error)
- func CreateResource(labInstance *ltbv1alpha1.LabInstance, node *ltbv1alpha1.LabInstanceNodes, ...) (client.Object, error)
- func CreateService(labInstance *ltbv1alpha1.LabInstance, node *ltbv1alpha1.LabInstanceNodes) (*corev1.Service, error)
- func CreateSvcAccRoleRoleBind(labInstance *ltbv1alpha1.LabInstance) (*corev1.ServiceAccount, *rbacv1.Role, *rbacv1.RoleBinding)
- func MapTemplateToPod(labInstance *ltbv1alpha1.LabInstance, node *ltbv1alpha1.LabInstanceNodes) (*corev1.Pod, error)
- func MapTemplateToVM(labInstance *ltbv1alpha1.LabInstance, node *ltbv1alpha1.LabInstanceNodes) (*kubevirtv1.VirtualMachine, error)
- func UpdateLabInstanceStatus(pods []*corev1.Pod, vms []*kubevirtv1.VirtualMachine, ...) error
- type LabInstanceReconciler
- func (r *LabInstanceReconciler) GetLabTemplate(ctx context.Context, labInstance *ltbv1alpha1.LabInstance, ...) ReturnToReconciler
- func (r *LabInstanceReconciler) GetNodeType(ctx context.Context, nodeTypeRef *ltbv1alpha1.NodeTypeRef, ...) ReturnToReconciler
- func (r *LabInstanceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *LabInstanceReconciler) ReconcileNetwork(ctx context.Context, labInstance *ltbv1alpha1.LabInstance) ReturnToReconciler
- func (r *LabInstanceReconciler) ReconcileResource(labInstance *ltbv1alpha1.LabInstance, resource client.Object, ...) ReturnToReconciler
- func (r *LabInstanceReconciler) ResourceExists(resource client.Object) (bool, error)
- func (r *LabInstanceReconciler) SetupWithManager(mgr ctrl.Manager) error
- type LabTemplateReconciler
- type NodeTypeReconciler
- type ReturnToReconciler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TestData for Template rendering TestNodeData = ltbv1alpha1.LabInstanceNodes{ Name: "test", NodeTypeRef: ltbv1alpha1.NodeTypeRef{ Type: "testnodetype", Image: "ubuntu", Version: "latest", }, Interfaces: []ltbv1alpha1.NodeInterface{ { IPv4: "192.168.0.1/24", }, { IPv4: "172.16.0.1/24", }, { IPv4: "10.0.0.1/24", }, }, } )
Functions ¶
func CreateIngress ¶
func CreateIngress(labInstance *ltbv1alpha1.LabInstance, node *ltbv1alpha1.LabInstanceNodes, kind string) (*networkingv1.Ingress, error)
func CreatePod ¶
func CreatePod(labInstance *ltbv1alpha1.LabInstance, node *ltbv1alpha1.LabInstanceNodes) (*corev1.Pod, error)
func CreateResource ¶
func CreateResource(labInstance *ltbv1alpha1.LabInstance, node *ltbv1alpha1.LabInstanceNodes, resource client.Object, kind string) (client.Object, error)
func CreateService ¶
func CreateService(labInstance *ltbv1alpha1.LabInstance, node *ltbv1alpha1.LabInstanceNodes) (*corev1.Service, error)
func CreateSvcAccRoleRoleBind ¶
func CreateSvcAccRoleRoleBind(labInstance *ltbv1alpha1.LabInstance) (*corev1.ServiceAccount, *rbacv1.Role, *rbacv1.RoleBinding)
func MapTemplateToPod ¶
func MapTemplateToPod(labInstance *ltbv1alpha1.LabInstance, node *ltbv1alpha1.LabInstanceNodes) (*corev1.Pod, error)
func MapTemplateToVM ¶
func MapTemplateToVM(labInstance *ltbv1alpha1.LabInstance, node *ltbv1alpha1.LabInstanceNodes) (*kubevirtv1.VirtualMachine, error)
func UpdateLabInstanceStatus ¶
func UpdateLabInstanceStatus(pods []*corev1.Pod, vms []*kubevirtv1.VirtualMachine, labInstance *ltbv1alpha1.LabInstance) error
Types ¶
type LabInstanceReconciler ¶
func (*LabInstanceReconciler) GetLabTemplate ¶
func (r *LabInstanceReconciler) GetLabTemplate(ctx context.Context, labInstance *ltbv1alpha1.LabInstance, labTemplate *ltbv1alpha1.LabTemplate) ReturnToReconciler
func (*LabInstanceReconciler) GetNodeType ¶
func (r *LabInstanceReconciler) GetNodeType(ctx context.Context, nodeTypeRef *ltbv1alpha1.NodeTypeRef, nodeType *ltbv1alpha1.NodeType) ReturnToReconciler
func (*LabInstanceReconciler) ReconcileNetwork ¶
func (r *LabInstanceReconciler) ReconcileNetwork(ctx context.Context, labInstance *ltbv1alpha1.LabInstance) ReturnToReconciler
func (*LabInstanceReconciler) ReconcileResource ¶
func (r *LabInstanceReconciler) ReconcileResource(labInstance *ltbv1alpha1.LabInstance, resource client.Object, node *ltbv1alpha1.LabInstanceNodes, nodeKind string) ReturnToReconciler
func (*LabInstanceReconciler) ResourceExists ¶
func (r *LabInstanceReconciler) ResourceExists(resource client.Object) (bool, error)
func (*LabInstanceReconciler) SetupWithManager ¶
func (r *LabInstanceReconciler) SetupWithManager(mgr ctrl.Manager) error
type LabTemplateReconciler ¶
func (*LabTemplateReconciler) SetupWithManager ¶
func (r *LabTemplateReconciler) SetupWithManager(mgr ctrl.Manager) error
type NodeTypeReconciler ¶
func (*NodeTypeReconciler) SetupWithManager ¶
func (r *NodeTypeReconciler) SetupWithManager(mgr ctrl.Manager) error
type ReturnToReconciler ¶
type ReturnToReconciler struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.