Documentation ¶
Index ¶
- Constants
- func DumpStatefulSetDiff(host *api.Host, cur, new *apps.StatefulSet)
- func GetObjectStatusFromMetas(labeler interfaces.ILabeler, curMeta, newMeta meta.Object) api.ObjectStatus
- func LogActionPlan(ap *action_plan.ActionPlan)
- func LogCR(name string, cr api.ICustomResource)
- func LogOldAndNew(name string, old, new api.ICustomResource)
- type Announcer
- func (a Announcer) A() Announcer
- func (a Announcer) E() Announcer
- func (a Announcer) Error(format string, args ...interface{})
- func (a Announcer) F() Announcer
- func (a Announcer) FL() Announcer
- func (a Announcer) Fatal(format string, args ...interface{})
- func (a Announcer) Info(format string, args ...interface{})
- func (a Announcer) L() Announcer
- func (a Announcer) M(m ...interface{}) Announcer
- func (a Announcer) P()
- func (a Announcer) S() Announcer
- func (a Announcer) Silence() Announcer
- func (a Announcer) V(level log.Level) Announcer
- func (a Announcer) Warning(format string, args ...interface{})
- func (a Announcer) WithEvent(cr api.ICustomResource, action string, reason string) Announcer
- func (a Announcer) WithStatusAction(cr api.ICustomResource) Announcer
- func (a Announcer) WithStatusActions(cr api.ICustomResource) Announcer
- func (a Announcer) WithStatusError(cr api.ICustomResource) Announcer
- type ErrorCRUD
- type EventEmitter
- type ReconcileShardsAndHostsOptions
- type ReconcileShardsAndHostsOptionsCtxKeyType
- type Task
Constants ¶
const ( // Event action describes what action was taken EventActionReconcile = "Reconcile" EventActionCreate = "Create" EventActionUpdate = "Update" EventActionDelete = "Delete" EventActionProgress = "Progress" )
const ( // Short, machine understandable string that gives the reason for the transition into the object's current status EventReasonReconcileStarted = "ReconcileStarted" EventReasonReconcileInProgress = "ReconcileInProgress" EventReasonReconcileCompleted = "ReconcileCompleted" EventReasonReconcileFailed = "ReconcileFailed" EventReasonCreateStarted = "CreateStarted" EventReasonCreateInProgress = "CreateInProgress" EventReasonCreateCompleted = "CreateCompleted" EventReasonCreateFailed = "CreateFailed" EventReasonUpdateStarted = "UpdateStarted" EventReasonUpdateInProgress = "UpdateInProgress" EventReasonUpdateCompleted = "UpdateCompleted" EventReasonUpdateFailed = "UpdateFailed" EventReasonDeleteStarted = "DeleteStarted" EventReasonDeleteInProgress = "DeleteInProgress" EventReasonDeleteCompleted = "DeleteCompleted" EventReasonDeleteFailed = "DeleteFailed" EventReasonProgressHostsCompleted = "ProgressHostsCompleted" )
Variables ¶
This section is empty.
Functions ¶
func DumpStatefulSetDiff ¶
func DumpStatefulSetDiff(host *api.Host, cur, new *apps.StatefulSet)
func GetObjectStatusFromMetas ¶
func GetObjectStatusFromMetas(labeler interfaces.ILabeler, curMeta, newMeta meta.Object) api.ObjectStatus
GetObjectStatusFromMetas gets StatefulSet status from cur and new meta infos
func LogOldAndNew ¶
func LogOldAndNew(name string, old, new api.ICustomResource)
LogOldAndNew writes old and new CHIs into the log
Types ¶
type Announcer ¶
Announcer handler all log/event/status messages going outside of controller/worker
func NewAnnouncer ¶
func NewAnnouncer(eventEmitter interfaces.IEventEmitter, statusUpdater interfaces.IKubeCR) Announcer
NewAnnouncer creates new announcer
func (Announcer) WithEvent ¶
WithEvent is used in chained calls in order to produce event into `chi`
func (Announcer) WithStatusAction ¶
func (a Announcer) WithStatusAction(cr api.ICustomResource) Announcer
WithStatusAction is used in chained calls in order to produce action into `ClickHouseInstallation.Status.Action`
func (Announcer) WithStatusActions ¶
func (a Announcer) WithStatusActions(cr api.ICustomResource) Announcer
WithStatusActions is used in chained calls in order to produce action in ClickHouseInstallation.Status.Actions
func (Announcer) WithStatusError ¶
func (a Announcer) WithStatusError(cr api.ICustomResource) Announcer
WithStatusError is used in chained calls in order to produce error in ClickHouseInstallation.Status.Error
type EventEmitter ¶
type EventEmitter struct {
// contains filtered or unexported fields
}
func NewEventEmitter ¶
func NewEventEmitter( kubeEvent interfaces.IKubeEvent, kind string, generateName string, component string, ) *EventEmitter
func (*EventEmitter) EventError ¶
EventError emits event Error
func (*EventEmitter) EventWarning ¶
EventWarning emits event Warning
type ReconcileShardsAndHostsOptions ¶
type ReconcileShardsAndHostsOptions struct {
FullFanOut bool
}
ReconcileShardsAndHostsOptions is and options for reconciler
type ReconcileShardsAndHostsOptionsCtxKeyType ¶
type ReconcileShardsAndHostsOptionsCtxKeyType string
ReconcileShardsAndHostsOptionsCtxKeyType specifies type for ReconcileShardsAndHostsOptionsCtxKey More details here on why do we need special type https://stackoverflow.com/questions/40891345/fix-should-not-use-basic-type-string-as-key-in-context-withvalue-golint
const ReconcileShardsAndHostsOptionsCtxKey ReconcileShardsAndHostsOptionsCtxKeyType = "ReconcileShardsAndHostsOptions"
ReconcileShardsAndHostsOptionsCtxKey specifies name of the key to be used for ReconcileShardsAndHostsOptions
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
task represents context of a worker. This also can be called "a reconcile task"
func (*Task) Creator ¶
func (t *Task) Creator() interfaces.ICreator