Documentation
¶
Overview ¶
DataInfra Pinot Control Plane (C) 2023 - 2024 DataInfra.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func Create(e event.CreateEvent, log logr.Logger) bool
- func Update(e event.UpdateEvent, log logr.Logger) bool
- type GenericPredicates
- type PinotTableReconciler
- func (r *PinotTableReconciler) CreateOrUpdate(table *v1beta1.PinotTable, svcName string, build builder.Builder, ...) (controllerutil.OperationResult, error)
- func (r *PinotTableReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *PinotTableReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
const ( PinotTableControllerCreateSuccess = "PinotTableControllerCreateSuccess" PinotTableControllerCreateFail = "PinotTableControllerCreateFail" PinotTableControllerGetSuccess = "PinotTableControllerGetSuccess" PinotTableControllerGetFail = "PinotTableControllerGetFail" PinotTableControllerUpdateSuccess = "PinotTableControllerUpdateSuccess" PinotTableControllerPatchStatusSuccess = "PinotTableControllerPatchStatusSuccess" PinotTableControllerPatchStatusFail = "PinotTableControllerPatchStatusFail" PinotTableControllerUpdateFail = "PinotTableControllerUpdateFail" PinotTableControllerDeleteSuccess = "PinotTableControllerDeleteSuccess" PinotTableControllerDeleteFail = "PinotTableControllerDeleteFail" PinotTableReloadAllSegments = "PinotTableReloadAllSegments" PinotTableControllerFinalizer = "pinottable.datainfra.io/finalizer" )
const ( ControlPlaneUserName = "CONTROL_PLANE_USERNAME" ControlPlanePassword = "CONTROL_PLANE_PASSWORD" )
const (
PinotControllerPort = "9000"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GenericPredicates ¶ added in v0.0.5
type GenericPredicates struct {
predicate.GenerationChangedPredicate
}
All methods to implement GenericPredicates type GenericPredicates to be passed to manager
func (GenericPredicates) Create ¶ added in v0.0.5
func (GenericPredicates) Create(e event.CreateEvent) bool
create() to filter create events
func (GenericPredicates) Update ¶ added in v0.0.5
func (GenericPredicates) Update(e event.UpdateEvent) bool
update() to filter update events
type PinotTableReconciler ¶
type PinotTableReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme // reconcile time duration, defaults to 10s ReconcileWait time.Duration Recorder record.EventRecorder }
PinotTableReconciler reconciles a PinotTable object
func NewPinotTableReconciler ¶
func NewPinotTableReconciler(mgr ctrl.Manager) *PinotTableReconciler
func (*PinotTableReconciler) CreateOrUpdate ¶ added in v0.0.5
func (r *PinotTableReconciler) CreateOrUpdate( table *v1beta1.PinotTable, svcName string, build builder.Builder, auth internalHTTP.Auth, ) (controllerutil.OperationResult, error)
Get table if does not exist create if exists check for update
func (*PinotTableReconciler) Reconcile ¶
func (r *PinotTableReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
+kubebuilder:rbac:groups=datainfra.io,resources=pinottables,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=datainfra.io,resources=pinottables/status,verbs=get;update;patch +kubebuilder:rbac:groups=datainfra.io,resources=pinottables/finalizers,verbs=update +kubebuilder:rbac:groups="",resources=secret,verbs=get
func (*PinotTableReconciler) SetupWithManager ¶
func (r *PinotTableReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.