Documentation ¶
Index ¶
- func GetPhaseFromComponent(componentStatus *srapi.StarRocksComponentStatus) srapi.Phase
- func SetupClusterReconciler(mgr ctrl.Manager) error
- func SetupWarehouseReconciler(mgr ctrl.Manager, namespace string) error
- type StarRocksClusterReconciler
- 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
- type StarRocksWarehouseReconciler
- func (r *StarRocksWarehouseReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *StarRocksWarehouseReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *StarRocksWarehouseReconciler) UpdateStarRocksWarehouseStatus(ctx context.Context, warehouse *srapi.StarRocksWarehouse) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPhaseFromComponent ¶
func GetPhaseFromComponent(componentStatus *srapi.StarRocksComponentStatus) srapi.Phase
GetPhaseFromComponent return the Phase of Cluster or Warehouse based on the component status. It returns empty string if not sure the phase.
func SetupClusterReconciler ¶
func SetupWarehouseReconciler ¶
SetupWarehouseReconciler Why do we need a namespace parameter?
- Warehouse CRD is an optional feature, and user may not install it.
- We try to use list Warehouses operation to check if Warehouse CRD exists or not.
- By Default, It needs the cluster scope permission.
Types ¶
type StarRocksClusterReconciler ¶
type StarRocksClusterReconciler struct { client.Client Recorder record.EventRecorder Scs []subcontrollers.ClusterSubController }
StarRocksClusterReconciler reconciles a StarRocksCluster object
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. 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 update the starrockscluster metadata, spec.
func (*StarRocksClusterReconciler) UpdateStarRocksClusterStatus ¶
func (r *StarRocksClusterReconciler) UpdateStarRocksClusterStatus(ctx context.Context, src *srapi.StarRocksCluster) error
UpdateStarRocksClusterStatus update the status of src.
type StarRocksWarehouseReconciler ¶
type StarRocksWarehouseReconciler struct { client.Client // contains filtered or unexported fields }
StarRocksWarehouseReconciler reconciles a StarRocksWarehouse object
func (*StarRocksWarehouseReconciler) Reconcile ¶
func (r *StarRocksWarehouseReconciler) 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.12.1/pkg/reconcile
func (*StarRocksWarehouseReconciler) SetupWithManager ¶
func (r *StarRocksWarehouseReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*StarRocksWarehouseReconciler) UpdateStarRocksWarehouseStatus ¶
func (r *StarRocksWarehouseReconciler) UpdateStarRocksWarehouseStatus(ctx context.Context, warehouse *srapi.StarRocksWarehouse) error
UpdateStarRocksWarehouseStatus update the status of warehouse.