controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HBaseControllerNameKey     = "hbase-controller-name"
	HBaseControllerRevisionKey = "hbase-controller-revision"
)

Variables

This section is empty.

Functions

func DeepHashObject

func DeepHashObject(hasher hash.Hash, objectToWrite interface{})

DeepHashObject writes specified object to hash using the spew library which follows pointers and prints actual values of the nested objects ensuring the hash does not change when a pointer changes.

Types

type HBaseReconciler

type HBaseReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	Log     logr.Logger
	GhAdmin gohbase.AdminClient
}

HBaseReconciler reconciles a HBase object

func (*HBaseReconciler) Reconcile

func (r *HBaseReconciler) 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://pkgo.dev/sigs.k8s.io/controller-runtime@v0.17.2/pkg/reconcile

func (*HBaseReconciler) SetupWithManager

func (r *HBaseReconciler) 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
JackTT - Gopher 🇻🇳