Documentation ¶
Index ¶
- Constants
- Variables
- func GetMatchingVirtualMachines(vmSnapshotPolicy *proxmoxv1alpha1.VirtualMachineSnapshotPolicy, ...) []proxmoxv1alpha1.VirtualMachine
- func VMSnapshotCR(vmName, snapshotName, namespace string) *proxmoxv1alpha1.VirtualMachineSnapshot
- type ContainerReconciler
- func (r *ContainerReconciler) CloneContainer(container *proxmoxv1alpha1.Container) error
- func (r *ContainerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *ContainerReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *ContainerReconciler) StartOrUpdateContainer(ctx context.Context, container *proxmoxv1alpha1.Container) error
- func (r *ContainerReconciler) UpdateContainer(ctx context.Context, container *proxmoxv1alpha1.Container) error
- func (r *ContainerReconciler) UpdateContainerStatus(ctx context.Context, container *proxmoxv1alpha1.Container) error
- type CustomCertificateReconciler
- type ManagedVirtualMachineReconciler
- type StorageDownloadURLReconciler
- type VirtualMachineReconciler
- func (r *VirtualMachineReconciler) CreateVirtualMachine(vm *proxmoxv1alpha1.VirtualMachine) error
- func (r *VirtualMachineReconciler) DeleteVirtualMachine(vm *proxmoxv1alpha1.VirtualMachine)
- func (r *VirtualMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *VirtualMachineReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *VirtualMachineReconciler) UpdateVirtualMachineStatus(vm *proxmoxv1alpha1.VirtualMachine) error
- type VirtualMachineSetReconciler
- func (r *VirtualMachineSetReconciler) CreateVirtualMachineCR(vmSet *proxmoxv1alpha1.VirtualMachineSet, index string) error
- func (r *VirtualMachineSetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *VirtualMachineSetReconciler) SetupWithManager(mgr ctrl.Manager) error
- type VirtualMachineSnapshotPolicyReconciler
- func (r *VirtualMachineSnapshotPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *VirtualMachineSnapshotPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *VirtualMachineSnapshotPolicyReconciler) StartSnapshotCronJobs(ctx context.Context, ...) error
- type VirtualMachineSnapshotReconciler
Constants ¶
const ( CustomCertReconcilationPeriod = 10 CustomCertMaxConcurrentReconciles = 10 )
const ( ManagedVMreconcilationPeriod = 15 ManagedVMmaxConcurrentReconciles = 5 )
const ( // Controller settings SDUreconcilationPeriod = 10 SDUmaxConcurrentReconciles = 3 )
const ( // Controller settings VMreconcilationPeriod = 10 VMmaxConcurrentReconciles = 10 )
const ( VMSetreconcilationPeriod = 10 VMSetmaxConcurrentReconciles = 5 )
const ( // Controller settings VMSnapshotreconcilationPeriod = 10 VMSnapshotmaxConcurrentReconciles = 3 )
const ( // Controller settings VMSnapshotPolicyreconcilationPeriod = 10 VMSnapshotPolicymaxConcurrentReconciles = 3 )
Variables ¶
var (
Clientset, DynamicClient = kubernetes.GetKubeconfig()
)
var (
StatusCode int
)
Functions ¶
func GetMatchingVirtualMachines ¶
func GetMatchingVirtualMachines(vmSnapshotPolicy *proxmoxv1alpha1.VirtualMachineSnapshotPolicy, r *VirtualMachineSnapshotPolicyReconciler, ctx context.Context) []proxmoxv1alpha1.VirtualMachine
func VMSnapshotCR ¶
func VMSnapshotCR(vmName, snapshotName, namespace string) *proxmoxv1alpha1.VirtualMachineSnapshot
Types ¶
type ContainerReconciler ¶
ContainerReconciler reconciles a Container object
func (*ContainerReconciler) CloneContainer ¶
func (r *ContainerReconciler) CloneContainer(container *proxmoxv1alpha1.Container) error
func (*ContainerReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Container object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.0/pkg/reconcile
func (*ContainerReconciler) SetupWithManager ¶
func (r *ContainerReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*ContainerReconciler) StartOrUpdateContainer ¶
func (r *ContainerReconciler) StartOrUpdateContainer(ctx context.Context, container *proxmoxv1alpha1.Container) error
func (*ContainerReconciler) UpdateContainer ¶
func (r *ContainerReconciler) UpdateContainer(ctx context.Context, container *proxmoxv1alpha1.Container) error
func (*ContainerReconciler) UpdateContainerStatus ¶
func (r *ContainerReconciler) UpdateContainerStatus(ctx context.Context, container *proxmoxv1alpha1.Container) error
type CustomCertificateReconciler ¶
CustomCertificateReconciler reconciles a CustomCertificate object
func (*CustomCertificateReconciler) Reconcile ¶
func (r *CustomCertificateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the CustomCertificate object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.3/pkg/reconcile
func (*CustomCertificateReconciler) SetupWithManager ¶
func (r *CustomCertificateReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ManagedVirtualMachineReconciler ¶
ManagedVirtualMachineReconciler reconciles a ManagedVirtualMachine object
func (*ManagedVirtualMachineReconciler) Reconcile ¶
func (r *ManagedVirtualMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ManagedVirtualMachine object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.0/pkg/reconcile
func (*ManagedVirtualMachineReconciler) SetupWithManager ¶
func (r *ManagedVirtualMachineReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type StorageDownloadURLReconciler ¶
StorageDownloadURLReconciler reconciles a StorageDownloadURL object
func (*StorageDownloadURLReconciler) Reconcile ¶
func (r *StorageDownloadURLReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the StorageDownloadURL object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.3/pkg/reconcile
func (*StorageDownloadURLReconciler) SetupWithManager ¶
func (r *StorageDownloadURLReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type VirtualMachineReconciler ¶
VirtualMachineReconciler reconciles a VirtualMachine object
func (*VirtualMachineReconciler) CreateVirtualMachine ¶
func (r *VirtualMachineReconciler) CreateVirtualMachine(vm *proxmoxv1alpha1.VirtualMachine) error
func (*VirtualMachineReconciler) DeleteVirtualMachine ¶
func (r *VirtualMachineReconciler) DeleteVirtualMachine(vm *proxmoxv1alpha1.VirtualMachine)
func (*VirtualMachineReconciler) Reconcile ¶
func (r *VirtualMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*VirtualMachineReconciler) SetupWithManager ¶
func (r *VirtualMachineReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*VirtualMachineReconciler) UpdateVirtualMachineStatus ¶
func (r *VirtualMachineReconciler) UpdateVirtualMachineStatus(vm *proxmoxv1alpha1.VirtualMachine) error
type VirtualMachineSetReconciler ¶
VirtualMachineSetReconciler reconciles a VirtualMachineSet object
func (*VirtualMachineSetReconciler) CreateVirtualMachineCR ¶
func (r *VirtualMachineSetReconciler) CreateVirtualMachineCR(vmSet *proxmoxv1alpha1.VirtualMachineSet, index string) error
func (*VirtualMachineSetReconciler) Reconcile ¶
func (r *VirtualMachineSetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the VirtualMachineSet object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.0/pkg/reconcile
func (*VirtualMachineSetReconciler) SetupWithManager ¶
func (r *VirtualMachineSetReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type VirtualMachineSnapshotPolicyReconciler ¶
VirtualMachineSnapshotPolicyReconciler reconciles a VirtualMachineSnapshotPolicy object
func (*VirtualMachineSnapshotPolicyReconciler) Reconcile ¶
func (r *VirtualMachineSnapshotPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the VirtualMachineSnapshotPolicy object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.0/pkg/reconcile
func (*VirtualMachineSnapshotPolicyReconciler) SetupWithManager ¶
func (r *VirtualMachineSnapshotPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*VirtualMachineSnapshotPolicyReconciler) StartSnapshotCronJobs ¶
func (r *VirtualMachineSnapshotPolicyReconciler) StartSnapshotCronJobs(ctx context.Context, vmSnapshotPolicy *proxmoxv1alpha1.VirtualMachineSnapshotPolicy) error
type VirtualMachineSnapshotReconciler ¶
VirtualMachineSnapshotReconciler reconciles a VirtualMachineSnapshot object
func (*VirtualMachineSnapshotReconciler) Reconcile ¶
func (r *VirtualMachineSnapshotReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the VirtualMachineSnapshot object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.0/pkg/reconcile
func (*VirtualMachineSnapshotReconciler) SetupWithManager ¶
func (r *VirtualMachineSnapshotReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.