pkg

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Controllers through the init for add Controller.
	Controllers []Controller
	Scheme      = runtime.NewScheme()
)

Functions

This section is empty.

Types

type Controller

type Controller interface {
	Init(mgr ctrl.Manager)
}

type StarRocksClusterReconciler

type StarRocksClusterReconciler struct {
	client.Client
	Recorder record.EventRecorder
	Scs      map[string]sub_controller.SubController
}

StarRocksClusterReconciler reconciles a StarRocksCluster object

func (*StarRocksClusterReconciler) Init

Init initial the StarRocksClusterReconciler for reconcile.

func (*StarRocksClusterReconciler) PatchStarRocksCluster

func (r *StarRocksClusterReconciler) PatchStarRocksCluster(ctx context.Context, src *srapi.StarRocksCluster) error

PatchStarRocksCluster patch spec, metadata

func (*StarRocksClusterReconciler) 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 StarRocksCluster 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.12.1/pkg/reconcile

func (*StarRocksClusterReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*StarRocksClusterReconciler) UpdateStarRocksCluster

func (r *StarRocksClusterReconciler) UpdateStarRocksCluster(ctx context.Context, src *srapi.StarRocksCluster) error

UpdateStarRocksCluster udpate the starrockscluster metadata, spec.

func (*StarRocksClusterReconciler) UpdateStarRocksClusterStatus

func (r *StarRocksClusterReconciler) UpdateStarRocksClusterStatus(ctx context.Context, src *srapi.StarRocksCluster) error

UpdateStarRocksClusterStatus update the status of src.

Directories

Path Synopsis
+domain=starrocks.com
+domain=starrocks.com
starrocks/v1
+k8s:deepcopy-gen=package +groupName=starrocks.com
+k8s:deepcopy-gen=package +groupName=starrocks.com
starrocks/v1alpha1
+k8s:deepcopy-gen=package +groupName=starrocks.com
+k8s:deepcopy-gen=package +groupName=starrocks.com
+k8s:deepcopy-gen=package +groupName=starrocks.com
+k8s:deepcopy-gen=package +groupName=starrocks.com
be
cn
fe

Jump to

Keyboard shortcuts

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