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: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceClusterLabel  = "kubecarrier.io/service-cluster"
	OriginNamespaceLabel = "kubecarrier.io/origin-namespace"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountReconciler

type AccountReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

AccountReconciler reconciles a Account object

func (*AccountReconciler) Reconcile

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

Reconcile function reconciles the Account object which specified by the request. Currently, it does the following: 1. Fetch the Account object. 2. Handle the deletion of the Account object (Remove the namespace that the account owns, and remove the finalizer). 3. Handle the creation/update of the Account object (Create/reconcile the namespace and insert the finalizer). 4. Update the status of the Account object.

func (*AccountReconciler) SetupWithManager

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

type CatalogEntryReconciler

type CatalogEntryReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

CatalogEntryReconciler reconciles a CatalogEntry object

func (*CatalogEntryReconciler) Reconcile

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

Reconcile function reconciles the CatalogEntry object which specified by the request. Currently, it does the following: - Fetch the CatalogEntry object. - Handle the deletion of the CatalogEntry object (Remove the annotations from the BaseCRD, and remove the finalizer). - Manipulate/Update the CRDInformation in the CatalogEntry status. - Update the status of the CatalogEntry object.

func (*CatalogEntryReconciler) SetupWithManager

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

type CatalogEntrySetReconciler

type CatalogEntrySetReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

CatalogEntrySetReconciler reconciles a CatalogEntrySet object

func (*CatalogEntrySetReconciler) Reconcile

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

func (*CatalogEntrySetReconciler) SetupWithManager

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

type CatalogReconciler

type CatalogReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

CatalogReconciler reconciles a Catalog object

func (*CatalogReconciler) Reconcile

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

Reconcile function reconciles the Catalog object which specified by the request. Currently, it does the following: - Fetch the Catalog object. - Handle the deletion of the Catalog object. - Fetch the CatalogEntries and Tenants that selected by this Catalog object. - Update the Status of the Catalog object.

func (*CatalogReconciler) SetupWithManager

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

type CustomResourceDiscoveryReconciler

type CustomResourceDiscoveryReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

CustomResourceDiscoveryReconciler reconciles a CustomResourceDiscovery object

func (*CustomResourceDiscoveryReconciler) Reconcile

func (*CustomResourceDiscoveryReconciler) SetupWithManager

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

type CustomResourceDiscoverySetReconciler

type CustomResourceDiscoverySetReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

CustomResourceDiscoverySetReconciler reconciles a CustomResourceDiscovery object

func (*CustomResourceDiscoverySetReconciler) Reconcile

func (*CustomResourceDiscoverySetReconciler) SetupWithManager

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

type DerivedCustomResourceReconciler

type DerivedCustomResourceReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

func (*DerivedCustomResourceReconciler) Reconcile

func (*DerivedCustomResourceReconciler) SetupWithManager

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

type ServiceClusterReconciler

type ServiceClusterReconciler struct {
	client.Client
	Log                logr.Logger
	Scheme             *runtime.Scheme
	MonitorGracePeriod time.Duration
}

func (*ServiceClusterReconciler) Reconcile

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

func (*ServiceClusterReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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