Documentation ¶
Index ¶
- Variables
- type Controller
- type StarRocksClusterReconciler
- func (r *StarRocksClusterReconciler) Init(mgr ctrl.Manager)
- func (r *StarRocksClusterReconciler) PatchStarRocksCluster(ctx context.Context, src *srapi.StarRocksCluster) error
- func (r *StarRocksClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *StarRocksClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *StarRocksClusterReconciler) UpdateStarRocksCluster(ctx context.Context, src *srapi.StarRocksCluster) error
- func (r *StarRocksClusterReconciler) UpdateStarRocksClusterStatus(ctx context.Context, src *srapi.StarRocksCluster) error
Constants ¶
This section is empty.
Variables ¶
var ( // Controllers through the init for add Controller. Controllers []Controller Scheme = runtime.NewScheme() )
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type StarRocksClusterReconciler ¶
type StarRocksClusterReconciler struct { client.Client Recorder record.EventRecorder Scs map[string]sub_controller.SubController }
StarRocksClusterReconciler reconciles a StarRocksCluster object
func (*StarRocksClusterReconciler) Init ¶
func (r *StarRocksClusterReconciler) Init(mgr ctrl.Manager)
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 ¶
func (r *StarRocksClusterReconciler) 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 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 |