controllers

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL