Documentation ¶
Overview ¶
Package project implements project-reconciler for kupenstack controller.
Working: maps projects in openstack to namespaces in kubernetes.
Events ¶
The following events are thrown by reconciler:
REASON MESSAGE KupenstackCreateFailed Openstack project create failed. error: %s KupenstackCreated Openstack project mapping created. KupenstackDeleteFailed Openstack project deletion failed. error: %s KupenstackDeleted Openstack project mapping deleted.
Index ¶
Constants ¶
View Source
const ( // contains name of project/tenant at openstack. ExternalNameAnnotation = "kupenstack.io/external-project-name" // contains id of project/tenant at openstack. ExternalIDAnnotation = "kupenstack.io/external-project-id" 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 KeyPair object
func (*Reconciler) Eventf ¶
func (r *Reconciler) Eventf(cr metav1.Object, eventtype, reason, messageFmt string, args ...interface{}) error
Records kubernetes event for passed kubernetes resources.
func (*Reconciler) Reconcile ¶
+kubebuilder:rbac:groups=v1,resources=namespaces,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=v1,resources=namespaces/status,verbs=get;update;patch +kubebuilder:rbac:groups=v1,resources=namespaces/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.