schemacontroller

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 (
	PinotSchemaControllerCreateSuccess      = "PinotSchemaControllerCreateSuccess"
	PinotSchemaControllerCreateFail         = "PinotSchemaControllerCreateFail"
	PinotSchemaControllerGetSuccess         = "PinotSchemaControllerGetSuccess"
	PinotSchemaControllerGetFail            = "PinotSchemaControllerGetFail"
	PinotSchemaControllerUpdateSuccess      = "PinotSchemaControllerUpdateSuccess"
	PinotSchemaControllerUpdateFail         = "PinotSchemaControllerUpdateFail"
	PinotSchemaControllerDeleteSuccess      = "PinotSchemaControllerDeleteSuccess"
	PinotSchemaControllerDeleteFail         = "PinotSchemaControllerDeleteFail"
	PinotSchemaControllerPatchStatusSuccess = "PinotSchemaControllerPatchStatusSuccess"
	PinotSchemaControllerPatchStatusFail    = "PinotSchemaControllerPatchStatusFail"
	PinotSchemaControllerFinalizer          = "pinotschema.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 added in v0.0.5

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

func Update added in v0.0.5

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

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

create() to filter create events

func (GenericPredicates) Update added in v0.0.5

update() to filter update events

type PinotSchemaReconciler

type PinotSchemaReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	// reconcile time duration, defaults to 10s
	ReconcileWait time.Duration
	Recorder      record.EventRecorder
}

PinotSchemaReconciler reconciles a PinotSchema object

func NewPinotSchemaReconciler added in v0.0.4

func NewPinotSchemaReconciler(mgr ctrl.Manager) *PinotSchemaReconciler

func (*PinotSchemaReconciler) CreateOrUpdate added in v0.0.5

func (r *PinotSchemaReconciler) CreateOrUpdate(
	schema *v1beta1.PinotSchema,
	svcName string,
	build builder.Builder,
	auth internalHTTP.Auth,
) (controllerutil.OperationResult, error)

Get Schema if does not exist create if exists check for update

func (*PinotSchemaReconciler) Reconcile

func (r *PinotSchemaReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

+kubebuilder:rbac:groups=datainfra.io,resources=pinotschemas,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=datainfra.io,resources=pinotschemas/status,verbs=get;update;patch +kubebuilder:rbac:groups=datainfra.io,resources=pinotschemas/finalizers,verbs=update +kubebuilder:rbac:groups="",resources=secret,verbs=get

func (*PinotSchemaReconciler) SetupWithManager

func (r *PinotSchemaReconciler) 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