Documentation ¶
Index ¶
- 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 ErrorCRUD
- type ReconcileShardsAndHostsOptions
- type ReconcileShardsAndHostsOptionsCtxKeyType
- type Task
Constants ¶
This section is empty.
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 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 NewTask ¶
func NewTask(creatorNew, creatorOld interfaces.ICreator) *Task
NewTask creates new context
func (*Task) Creator ¶
func (t *Task) Creator() interfaces.ICreator
func (*Task) CreatorPrev ¶
func (t *Task) CreatorPrev() interfaces.ICreator