chi

package
v0.0.0-...-fe8218d Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 68 Imported by: 2

Documentation

Index

Constants

View Source
const FinalizerName = "finalizer.clickhouseinstallation.altinity.com"

FinalizerName specifies name of the finalizer to be used with CHI

Variables

This section is empty.

Functions

func NewDropReplicaOptions

func NewDropReplicaOptions() *dropReplicaOptions

func NewDropReplicaOptionsArr

func NewDropReplicaOptionsArr(opts ...*dropReplicaOptions) (res dropReplicaOptionsArr)

NewDropReplicaOptionsArr creates new dropReplicaOptions array

func NewMigrateTableOptions

func NewMigrateTableOptions() *migrateTableOptions

func NewMigrateTableOptionsArr

func NewMigrateTableOptionsArr(opts ...*migrateTableOptions) (res migrateTableOptionsArr)

NewMigrateTableOptionsArr creates new migrateTableOptions array

func ShouldEnqueue

func ShouldEnqueue(cr *api.ClickHouseInstallation) bool

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller defines CRO controller

func NewController

func NewController(
	chopClient chopClientSet.Interface,
	extClient apiExtensions.Interface,
	kubeClient kube.Interface,
	chopInformerFactory chopInformers.SharedInformerFactory,
	kubeInformerFactory kubeInformers.SharedInformerFactory,
) *Controller

NewController creates instance of Controller

func (*Controller) GetCR

GetCR gets CR by any object that is either a CR itself or has labels referencing a CR

func (*Controller) OnStatefulSetCreateFailed

func (c *Controller) OnStatefulSetCreateFailed(ctx context.Context, host *api.Host) common.ErrorCRUD

OnStatefulSetCreateFailed handles situation when StatefulSet create failed on k8s level

func (*Controller) OnStatefulSetUpdateFailed

func (c *Controller) OnStatefulSetUpdateFailed(ctx context.Context, rollbackStatefulSet *apps.StatefulSet, host *api.Host, kubeSTS interfaces.IKubeSTS) common.ErrorCRUD

OnStatefulSetUpdateFailed handles situation when StatefulSet update failed in k8s level It can try to revert StatefulSet to its previous version, specified in rollbackStatefulSet

func (*Controller) Run

func (c *Controller) Run(ctx context.Context)

Run syncs caches, starts workers

type Skip

type Skip struct {
	New             bool
	Stopped         bool
	StoppedAncestor bool
}

type VersionOptions

type VersionOptions struct {
	Skip
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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