controllers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DBaaSPlatformFinalizer = "dbaasplaform-cleanup"
	RequeueDelaySuccess    = 10 * time.Second
	RequeueDelayError      = 5 * time.Second
)

Variables

View Source
var InstallNamespaceEnvVar = "INSTALL_NAMESPACE"

InstallNamespaceEnvVar is the constant for env variable INSTALL_NAMESPACE

Functions

func GetInstallNamespace

func GetInstallNamespace() (string, error)

GetInstallNamespace returns the operator's install Namespace

Types

type DBaaSConnectionReconciler

type DBaaSConnectionReconciler struct {
	*DBaaSReconciler
}

DBaaSConnectionReconciler reconciles a DBaaSConnection object

func (*DBaaSConnectionReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile

func (*DBaaSConnectionReconciler) SetupWithManager

func (r *DBaaSConnectionReconciler) SetupWithManager(mgr ctrl.Manager) (controller.Controller, error)

SetupWithManager sets up the controller with the Manager.

type DBaaSInventoryReconciler

type DBaaSInventoryReconciler struct {
	*DBaaSReconciler
}

DBaaSInventoryReconciler reconciles a DBaaSInventory object

func (*DBaaSInventoryReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile

func (*DBaaSInventoryReconciler) SetupWithManager

func (r *DBaaSInventoryReconciler) SetupWithManager(mgr ctrl.Manager) (controller.Controller, error)

SetupWithManager sets up the controller with the Manager.

type DBaaSPlatformReconciler

type DBaaSPlatformReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Log    logr.Logger
	// contains filtered or unexported fields
}

DBaaSPlatformReconciler reconciles a DBaaSPlatform object

func (*DBaaSPlatformReconciler) Reconcile

func (r *DBaaSPlatformReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the DBaaSPlatform object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile

func (*DBaaSPlatformReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type DBaaSProviderReconciler

type DBaaSProviderReconciler struct {
	*DBaaSReconciler
	ConnectionCtrl controller.Controller
	InventoryCtrl  controller.Controller
}

DBaaSProviderReconciler reconciles a DBaaSProvider object

func (*DBaaSProviderReconciler) Reconcile

func (r *DBaaSProviderReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile

func (*DBaaSProviderReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type DBaaSReconciler

type DBaaSReconciler struct {
	client.Client
	*runtime.Scheme
	InstallNamespace string
}

type DBaaSTenantReconciler

type DBaaSTenantReconciler struct {
	*DBaaSReconciler
}

DBaaSTenantReconciler reconciles a DBaaSTenant object

func (*DBaaSTenantReconciler) Reconcile

func (r *DBaaSTenantReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile

func (*DBaaSTenantReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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