Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdoptionReconciler

type AdoptionReconciler struct {
	client.Client
	Log              logr.Logger
	Scheme           *runtime.Scheme
	NamespacedClient client.Client

	// Dynamic types we work with
	ProviderGVK, TenantGVK schema.GroupVersionKind

	DerivedCRName, ProviderNamespace string
}

AdoptionReconciler reconciles Provider objects, that are not owned by a Tenant by creating the Tenant instance. The TenantObjReconciler will then "adopt" (add a OwnerReference).

func (*AdoptionReconciler) Reconcile

func (r *AdoptionReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*AdoptionReconciler) SetupWithManager

func (r *AdoptionReconciler) SetupWithManager(mgr ctrl.Manager) error

type TenantObjReconciler

type TenantObjReconciler struct {
	client.Client
	Log              logr.Logger
	Scheme           *runtime.Scheme
	NamespacedClient client.Client

	// Dynamic types we work with
	ProviderGVK, TenantGVK           schema.GroupVersionKind
	DerivedCRName, ProviderNamespace string
}

TenantObjReconciler reconciles a tenant-side CRD by converting it into a provider-side object and syncing the status back: Tenant obj (spec) -> Provider obj (spec) Tenant obj (status) <- Provider obj (status)

func (*TenantObjReconciler) Reconcile

func (r *TenantObjReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*TenantObjReconciler) SetupWithManager

func (r *TenantObjReconciler) SetupWithManager(mgr ctrl.Manager) error