Documentation ¶
Overview ¶
Package VM implements virtual-machine-reconciler for kupenstack controller.
Events ¶
The following events are thrown by reconciler:
REASON MESSAGE ImageNotFound Image %s not found. KeyPairNotFound Key pair %s not found. FlavorNotFound Flavor %s not found. Created Virtual Machine created. CreateFailed Virtual Machine create failed. error: %s DeleteFailed Vitual Machine deletion failed. error: %s Deleted Virtual Machine deleted.
Index ¶
Constants ¶
View Source
const ( // contains name of virtual machine resource at openstack. ExternalNameAnnotation = "kupenstack.io/external-virtual-machine-name" Finalizer = "kupenstack.io/finalizer" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct { client.Client OS *openstack.Client Log logr.Logger Scheme *runtime.Scheme EventRecorder record.EventRecorder }
Reconciler reconciles a VirtualMachine object
func (*Reconciler) Eventf ¶
func (r *Reconciler) Eventf(cr metav1.Object, eventtype, reason, messageFmt string, args ...interface{}) error
Records kubernetes event for passed custom resources.
func (*Reconciler) Reconcile ¶
+kubebuilder:rbac:groups=kupenstack.io,resources=virtualmachines,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=kupenstack.io,resources=virtualmachines/status,verbs=get;update;patch +kubebuilder:rbac:groups=kupenstack.io,resources=virtualmachines/finalizers,verbs=update
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.