conditions

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetCompleteFailed

func SetCompleteFailed(c Conditioner)

func SetCompleteFailedWithMessage

func SetCompleteFailedWithMessage(c Conditioner, message string)

func SetCompleteWithCronJob

func SetCompleteWithCronJob(c Conditioner, cronJob *batchv1.CronJob)

func SetCompleteWithJob

func SetCompleteWithJob(c Conditioner, job *batchv1.Job)

func SetGaleraConfigured

func SetGaleraConfigured(c Conditioner)

func SetGaleraNotReady

func SetGaleraNotReady(c Conditioner, mariadb *mariadbv1alpha1.MariaDB)

func SetGaleraReady

func SetGaleraReady(c Conditioner)

func SetPrimarySwitched

func SetPrimarySwitched(c Conditioner)

func SetPrimarySwitching

func SetPrimarySwitching(c Conditioner, mariadb *mariadbv1alpha1.MariaDB)

func SetReadyCreated

func SetReadyCreated(c Conditioner)

func SetReadyCreatedWithMessage

func SetReadyCreatedWithMessage(c Conditioner, message string)

func SetReadyFailed

func SetReadyFailed(c Conditioner)

func SetReadyFailedWithMessage

func SetReadyFailedWithMessage(c Conditioner, message string)

func SetReadyHealthy added in v0.0.26

func SetReadyHealthy(c Conditioner)

func SetReadyStorageResized added in v0.0.26

func SetReadyStorageResized(c Conditioner)

func SetReadyStorageResizing added in v0.0.26

func SetReadyStorageResizing(c Conditioner)

func SetReadyUnhealthyWithError added in v0.0.26

func SetReadyUnhealthyWithError(c Conditioner, err error)

func SetReadyWaitingStorageResize added in v0.0.26

func SetReadyWaitingStorageResize(c Conditioner)

func SetReadyWithInitJob added in v0.0.26

func SetReadyWithInitJob(c Conditioner, job *batchv1.Job)

func SetReadyWithMaxScaleStatus added in v0.0.25

func SetReadyWithMaxScaleStatus(c Conditioner, mss *mariadbv1alpha1.MaxScaleStatus)

func SetReadyWithStatefulSet

func SetReadyWithStatefulSet(c Conditioner, sts *appsv1.StatefulSet)

func SetRestoredBackup

func SetRestoredBackup(c Conditioner)

func SetRestoringBackup

func SetRestoringBackup(c Conditioner)

Types

type Complete

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

func NewComplete

func NewComplete(client client.Client) *Complete

func (*Complete) PatcherFailed

func (p *Complete) PatcherFailed(msg string) Patcher

func (*Complete) PatcherRefResolver

func (p *Complete) PatcherRefResolver(err error, obj runtime.Object) Patcher

func (*Complete) PatcherWithCronJob

func (p *Complete) PatcherWithCronJob(ctx context.Context, err error, key types.NamespacedName) (Patcher, error)

func (*Complete) PatcherWithJob

func (p *Complete) PatcherWithJob(ctx context.Context, err error, key types.NamespacedName) (Patcher, error)

type Conditioner

type Conditioner interface {
	SetCondition(condition metav1.Condition)
}

type Patcher

type Patcher func(Conditioner)

type Ready

type Ready struct{}

func NewReady

func NewReady() *Ready

func (*Ready) PatcherFailed

func (p *Ready) PatcherFailed(msg string) Patcher

func (*Ready) PatcherHealthy

func (p *Ready) PatcherHealthy(err error) Patcher

func (*Ready) PatcherRefResolver

func (p *Ready) PatcherRefResolver(err error, obj interface{}) Patcher

func (*Ready) PatcherWithError

func (p *Ready) PatcherWithError(err error) Patcher

Jump to

Keyboard shortcuts

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