controllers

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindingReconciler

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

	CreateResourceServiceKey   resource.KeyCreator
	CreateCFServiceKey         cfservice.KeyCreator
	DeleteResourceServiceKey   resource.KeyDeleter
	DeleteCFServiceKey         cfservice.KeyDeleter
	GetIBMCloudInfo            IBMCloudInfoGetter
	GetResourceServiceKey      resource.KeyGetter
	GetServiceInstanceCRN      resource.ServiceInstanceCRNGetter
	GetCFServiceKeyCredentials cfservice.KeyGetter
	GetServiceName             resource.ServiceNameGetter
	GetServiceRoleCRN          iam.ServiceRolesGetter
	SetControllerReference     OwnerReferenceSetter
	SetOwnerReference          OwnerReferenceSetter
}

BindingReconciler reconciles a Binding object

func (*BindingReconciler) Reconcile

func (r *BindingReconciler) Reconcile(request ctrl.Request) (ctrl.Result, error)

Reconcile reads the state of the cluster for a Binding object and makes changes based on the state read and what is in the Binding.Spec. Automatically generates RBAC rules to allow the Controller to read and write Deployments.

func (*BindingReconciler) SetupWithManager

func (r *BindingReconciler) SetupWithManager(mgr ctrl.Manager, options controller.Options) error

type Controllers added in v0.3.2

type Controllers struct {
	*BindingReconciler
	*ServiceReconciler
	*TokenReconciler
}

Controllers passes back references to set up controllers for test mocking purposes

func SetUpControllers added in v0.3.2

func SetUpControllers(mgr ctrl.Manager) (*Controllers, error)

type IBMCloudInfoGetter added in v0.2.3

type IBMCloudInfoGetter func(logt logr.Logger, r client.Client, instance *ibmcloudv1.Service) (*ibmcloud.Info, error)

type OwnerReferenceSetter added in v1.0.10

type OwnerReferenceSetter func(owner, owned metav1.Object, scheme *runtime.Scheme) error

type ServiceReconciler

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

	CreateCFServiceInstance         cfservice.InstanceCreator
	CreateResourceServiceInstance   resource.ServiceInstanceCreator
	DeleteCFServiceInstance         cfservice.InstanceDeleter
	DeleteResourceServiceInstance   resource.ServiceInstanceDeleter
	GetCFServiceInstance            cfservice.InstanceGetter
	GetIBMCloudInfo                 IBMCloudInfoGetter
	GetResourceServiceAliasInstance resource.ServiceAliasInstanceGetter
	GetResourceServiceInstanceState resource.ServiceInstanceStatusGetter
	UpdateResourceServiceInstance   resource.ServiceInstanceUpdater
}

ServiceReconciler reconciles a Service object

func (*ServiceReconciler) Reconcile

func (r *ServiceReconciler) Reconcile(request ctrl.Request) (ctrl.Result, error)

Reconcile reads the state of the cluster for a Service object and makes changes based on the state read and what is in the Service.Spec. Automatically generate RBAC rules to allow the Controller to read and write Deployments.

func (*ServiceReconciler) SetupWithManager

func (r *ServiceReconciler) SetupWithManager(mgr ctrl.Manager, options controller.Options) error

type TokenReconciler

type TokenReconciler struct {
	client.Client
	Log          logr.Logger
	Scheme       *runtime.Scheme
	Authenticate auth.Authenticator
}

TokenReconciler reconciles a Token object

func (*TokenReconciler) Reconcile

func (r *TokenReconciler) Reconcile(request ctrl.Request) (ctrl.Result, error)

Reconcile computes IAM and UAA tokens

func (*TokenReconciler) SetupWithManager

func (r *TokenReconciler) SetupWithManager(mgr ctrl.Manager, options controller.Options) error

Jump to

Keyboard shortcuts

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