tenantcontroller

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

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

View Source
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"
)
View Source
const (
	ControlPlaneUserName = "CONTROL_PLANE_USERNAME"
	ControlPlanePassword = "CONTROL_PLANE_PASSWORD"
)
View Source
const (
	PinotControllerPort = "9000"
)

Variables

This section is empty.

Functions

func Create

func Create(e event.CreateEvent, log logr.Logger) bool

func Update

func Update(e event.UpdateEvent, log logr.Logger) bool

Types

type GenericPredicates

type GenericPredicates struct {
	predicate.GenerationChangedPredicate
}

All methods to implement GenericPredicates type GenericPredicates to be passed to manager

func (GenericPredicates) Create

create() to filter create events

func (GenericPredicates) Update

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.

Jump to

Keyboard shortcuts

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