nebulacluster

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KruiseReferenceName = "statefulsets.apps.kruise.io"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterConditionUpdater

type ClusterConditionUpdater interface {
	Update(cluster *v1alpha1.NebulaCluster)
}

func NewClusterConditionUpdater

func NewClusterConditionUpdater() ClusterConditionUpdater

type ClusterReconciler

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

ClusterReconciler reconciles a NebulaCluster object

func NewClusterReconciler

func NewClusterReconciler(mgr ctrl.Manager, enableKruise bool) (*ClusterReconciler, error)

func (*ClusterReconciler) Reconcile

func (r *ClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res reconcile.Result, retErr error)

func (*ClusterReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ControlInterface

type ControlInterface interface {
	UpdateNebulaCluster(cluster *v1alpha1.NebulaCluster) error

	DeleteCluster(cluster *v1alpha1.NebulaCluster) error
}

func NewDefaultNebulaClusterControl

func NewDefaultNebulaClusterControl(
	client client.Client,
	nebulaClient kube.NebulaCluster,
	graphdCluster component.ReconcileManager,
	metadCluster component.ReconcileManager,
	storagedCluster component.ReconcileManager,
	exporter component.ReconcileManager,
	console component.ReconcileManager,
	metaReconciler component.ReconcileManager,
	pvcReclaimer reclaimer.PVCReclaimer,
	conditionUpdater ClusterConditionUpdater,
) ControlInterface

type FakeClusterControl

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

func NewFakeClusterControl

func NewFakeClusterControl() *FakeClusterControl

func (*FakeClusterControl) SetUpdateNebulaClusterError

func (f *FakeClusterControl) SetUpdateNebulaClusterError(err error)

func (*FakeClusterControl) UpdateNebulaCluster

func (f *FakeClusterControl) UpdateNebulaCluster(_ *v1alpha1.NebulaCluster) error

Jump to

Keyboard shortcuts

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