controllers

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package controllers implements controllers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectionRefMapper

func ConnectionRefMapper(ctx context.Context, object client.Object) []reconcile.Request

ConnectionRefMapper maps resource object to PulsarConnection request

Types

type APIServerConnectionReconciler added in v0.8.0

type APIServerConnectionReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	// ConnectionManager manages the API server connections
	ConnectionManager *ConnectionManager
}

APIServerConnectionReconciler reconciles a APIServerConnection object

func (*APIServerConnectionReconciler) Reconcile added in v0.8.0

func (*APIServerConnectionReconciler) SetupWithManager added in v0.8.0

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

SetupWithManager sets up the controller with the Manager.

type ConnectionManager added in v0.8.0

type ConnectionManager struct {
	client.Client
	// contains filtered or unexported fields
}

ConnectionManager manages API connections

func NewConnectionManager added in v0.8.0

func NewConnectionManager(client client.Client) *ConnectionManager

NewConnectionManager creates a new connection manager

func (*ConnectionManager) Close added in v0.8.0

func (m *ConnectionManager) Close() error

Close closes all connections

func (*ConnectionManager) CloseConnection added in v0.8.0

func (m *ConnectionManager) CloseConnection(name string) error

CloseConnection closes and removes a connection

func (*ConnectionManager) GetOrCreateConnection added in v0.8.0

GetOrCreateConnection gets or creates a connection

type FlinkDeploymentReconciler added in v0.8.0

type FlinkDeploymentReconciler struct {
	client.Client
	Scheme            *runtime.Scheme
	ConnectionManager *ConnectionManager
	// contains filtered or unexported fields
}

FlinkDeploymentReconciler reconciles a FlinkDeployment object

func (*FlinkDeploymentReconciler) Reconcile added in v0.8.0

Reconcile handles the reconciliation of FlinkDeployment objects

func (*FlinkDeploymentReconciler) SetupWithManager added in v0.8.0

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

SetupWithManager sets up the controller with the Manager.

type NotInitializedError added in v0.8.0

type NotInitializedError struct {
	// contains filtered or unexported fields
}

NotInitializedError represents an error when the connection is not fully initialized

func (*NotInitializedError) Error added in v0.8.0

func (e *NotInitializedError) Error() string

type PulsarConnectionReconciler

type PulsarConnectionReconciler struct {
	client.Client
	Scheme             *runtime.Scheme
	Log                logr.Logger
	Recorder           record.EventRecorder
	PulsarAdminCreator admin.PulsarAdminCreator
	Retryer            *utils.ReconcileRetryer
}

PulsarConnectionReconciler reconciles a PulsarConnection object

func (*PulsarConnectionReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the PulsarConnection 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.11.0/pkg/reconcile

func (*PulsarConnectionReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type PulsarConnectionRefMapper

type PulsarConnectionRefMapper struct {
}

PulsarConnectionRefMapper maps resource requests to PulsarConnection

func (*PulsarConnectionRefMapper) Map

Map maps resource object to PulsarConnection request

type WorkspaceReconciler added in v0.8.0

type WorkspaceReconciler struct {
	client.Client
	Scheme            *runtime.Scheme
	ConnectionManager *ConnectionManager
	// contains filtered or unexported fields
}

WorkspaceReconciler reconciles a Workspace object

func (*WorkspaceReconciler) Reconcile added in v0.8.0

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

Reconcile handles the reconciliation of Workspace objects

func (*WorkspaceReconciler) SetupWithManager added in v0.8.0

func (r *WorkspaceReconciler) 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