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 PinotTenantReconciler
- func (r *PinotTenantReconciler) CreateOrUpdate(tenant *v1beta1.PinotTenant, svcName string, build builder.Builder, ...) (controllerutil.OperationResult, error)
- func (r *PinotTenantReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *PinotTenantReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
const ( PinotTenantControllerGetSuccess = "PinotTenantControllerGetSuccess" PinotTenantControllerGetFail = "PinotTenantControllerGetFail" PinotTenantControllerCreateSuccess = "PinotTenantControllerCreateSuccess" PinotTenantControllerCreateFail = "PinotTenantControllerCreateFail" PinotTenantControllerUpdateSuccess = "PinotTenantControllerUpdateSuccess" PinotTenantControllerUpdateFail = "PinotTenantControllerUpdateFail" PinotTenantControllerDeleteSuccess = "PinotTenantControllerDeleteSuccess" PinotTenantControllerDeleteFail = "PinotTenantControllerDeleteFail" PinotTenantControllerPatchStatusSuccess = "PinotTenantControllerPatchStatusSuccess" PinotTenantControllerPatchStatusFail = "PinotTenantControllerPatchStatusFail" PinotTenantControllerFinalizer = "pinottenant.datainfra.io/finalizer" )
const ( ControlPlaneUserName = "CONTROL_PLANE_USERNAME" ControlPlanePassword = "CONTROL_PLANE_PASSWORD" )
const (
PinotControllerPort = "9000"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GenericPredicates ¶
type GenericPredicates struct {
predicate.GenerationChangedPredicate
}
All methods to implement GenericPredicates type GenericPredicates to be passed to manager
func (GenericPredicates) Create ¶
func (GenericPredicates) Create(e event.CreateEvent) bool
create() to filter create events
func (GenericPredicates) Update ¶
func (GenericPredicates) Update(e event.UpdateEvent) bool
update() to filter update events
type PinotTenantReconciler ¶
type PinotTenantReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme // reconcile time duration, defaults to 10s ReconcileWait time.Duration Recorder record.EventRecorder }
PinotTenantReconciler reconciles a PinotTenant object
func NewPinotTenantReconciler ¶
func NewPinotTenantReconciler(mgr ctrl.Manager) *PinotTenantReconciler
func (*PinotTenantReconciler) CreateOrUpdate ¶
func (r *PinotTenantReconciler) CreateOrUpdate( tenant *v1beta1.PinotTenant, svcName string, build builder.Builder, auth internalHTTP.Auth, ) (controllerutil.OperationResult, error)
func (*PinotTenantReconciler) Reconcile ¶
func (r *PinotTenantReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
+kubebuilder:rbac:groups=datainfra.io,resources=pinottenants,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=datainfra.io,resources=pinottenants/status,verbs=get;update;patch +kubebuilder:rbac:groups=datainfra.io,resources=pinottenants/finalizers,verbs=update +kubebuilder:rbac:groups=datainfra.io,resources=pinotschemas/finalizers,verbs=get;list;watch +kubebuilder:rbac:groups="",resources=secret,verbs=get
func (*PinotTenantReconciler) SetupWithManager ¶
func (r *PinotTenantReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.