Documentation
¶
Index ¶
- Constants
- func AddAffinity(statefulSet *appsv1.StatefulSet, nodeSelectorRequirementKey string, ...)
- func AddInitContainersToPodSpec(initContainers []string, podSpec *corev1.PodSpec) error
- func AddSidecarsToPodSpec(sidecar []string, podSpec *corev1.PodSpec) error
- func AppendPathAcl(path string, acl yt.ACE) (string, error)
- func CreateTabletCells(ctx context.Context, ytClient yt.Client, bundle string, tabletCellCount int) error
- func CreateUser(ctx context.Context, ytClient yt.Client, userName, token string, ...) error
- func DecodeSidecar(sidecarSpec string) (corev1.Container, error)
- func GetNotGoodTabletCellBundles(ctx context.Context, ytClient yt.Client) ([]string, error)
- func IsInstanceCountEqualYTSpec(ctx context.Context, ytClient yt.Client, componentType consts.ComponentType, ...) error
- func IsUpdatingComponent(ytsaurus *apiproxy.Ytsaurus, component Component) bool
- func RunIfCondition(condition string, commands ...string) string
- func RunIfExists(path string, commands ...string) string
- func RunIfNonexistent(path string, commands ...string) string
- func SetPathAcl(path string, acl []yt.ACE) (string, error)
- func SetWithIgnoreExisting(path string, value string) string
- func WaitTabletCellHealth(ctx context.Context, ytClient yt.Client, cellID yt.NodeID) (bool, error)
- func WaitTabletStateMounted(ctx context.Context, ytClient yt.Client, path ypath.Path) (bool, error)
- type BundleController
- func (bc *BundleController) Exists() bool
- func (bc *BundleController) Fetch(ctx context.Context) error
- func (c *BundleController) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *BundleController) NeedSync() bool
- func (c *BundleController) NeedUpdate() ComponentStatus
- func (bc *BundleController) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- type Chyt
- type Component
- type ComponentLoggers
- type ComponentStatus
- func ComponentStatusBlocked(format string, a ...any) ComponentStatus
- func ComponentStatusBlockedBy(format string, a ...any) ComponentStatus
- func ComponentStatusNeedUpdate(format string, a ...any) ComponentStatus
- func ComponentStatusPending(format string, a ...any) ComponentStatus
- func ComponentStatusReady() ComponentStatus
- func ComponentStatusReadyAfter(format string, a ...any) ComponentStatus
- func ComponentStatusSprintf(status SyncStatus, format string, a ...any) ComponentStatus
- func ComponentStatusUpdateStep(format string, a ...any) ComponentStatus
- func ComponentStatusUpdating(format string, a ...any) ComponentStatus
- func ComponentStatusWaitingFor(format string, a ...any) ComponentStatus
- func SimpleStatus(status SyncStatus) ComponentStatus
- type ConfigFormat
- type ConfigGenerator
- type ConfigGeneratorFunc
- type ConfigMapBuilder
- func (h *ConfigMapBuilder) AddGenerator(fileName string, format ConfigFormat, generator ConfigGeneratorFunc)
- func (h *ConfigMapBuilder) Build() (*corev1.ConfigMap, error)
- func (h *ConfigMapBuilder) Exists() bool
- func (h *ConfigMapBuilder) Fetch(ctx context.Context) error
- func (h *ConfigMapBuilder) GetConfigMapName() string
- func (h *ConfigMapBuilder) RemoveIfExists(ctx context.Context) error
- func (h *ConfigMapBuilder) Sync(ctx context.Context) error
- type ControllerAgent
- func (c *ControllerAgent) Exists() bool
- func (ca *ControllerAgent) Fetch(ctx context.Context) error
- func (c *ControllerAgent) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *ControllerAgent) NeedSync() bool
- func (c *ControllerAgent) NeedUpdate() ComponentStatus
- func (ca *ControllerAgent) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- func (ca *ControllerAgent) UpdatePreCheck(ctx context.Context) ComponentStatus
- type ControllerAgentsWithMaintenance
- type CypressProxy
- func (c *CypressProxy) Exists() bool
- func (cyp *CypressProxy) Fetch(ctx context.Context) error
- func (c *CypressProxy) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *CypressProxy) NeedSync() bool
- func (c *CypressProxy) NeedUpdate() ComponentStatus
- func (cyp *CypressProxy) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- type DataNode
- func (c *DataNode) Exists() bool
- func (n *DataNode) Fetch(ctx context.Context) error
- func (c *DataNode) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *DataNode) NeedSync() bool
- func (c *DataNode) NeedUpdate() ComponentStatus
- func (n *DataNode) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- func (n *DataNode) UpdatePreCheck(ctx context.Context) ComponentStatus
- type DataNodeMeta
- type Discovery
- func (c *Discovery) Exists() bool
- func (d *Discovery) Fetch(ctx context.Context) error
- func (c *Discovery) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *Discovery) NeedSync() bool
- func (c *Discovery) NeedUpdate() ComponentStatus
- func (d *Discovery) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- func (d *Discovery) UpdatePreCheck(ctx context.Context) ComponentStatus
- type ExecNode
- func (n *ExecNode) Exists() bool
- func (n *ExecNode) Fetch(ctx context.Context) error
- func (n *ExecNode) NeedSync() bool
- func (n *ExecNode) NeedUpdate() ComponentStatus
- func (n *ExecNode) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- func (n *ExecNode) UpdatePreCheck(ctx context.Context) ComponentStatus
- type HttpProxy
- func (c *HttpProxy) Exists() bool
- func (hp *HttpProxy) Fetch(ctx context.Context) error
- func (c *HttpProxy) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *HttpProxy) NeedSync() bool
- func (c *HttpProxy) NeedUpdate() ComponentStatus
- func (hp *HttpProxy) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- type ImageHeater
- func (ih *ImageHeater) Exists() bool
- func (ih *ImageHeater) Fetch(ctx context.Context) error
- func (c *ImageHeater) GetComponent() ytv1.Component
- func (c *ImageHeater) GetCypressPatch() ypatch.PatchSet
- func (c *ImageHeater) GetFullName() string
- func (ih *ImageHeater) GetHeaterStatus(component ytv1.Component) ComponentStatus
- func (c *ImageHeater) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *ImageHeater) GetLabeller() *labeller.Labeller
- func (c *ImageHeater) GetReadyCondition() ComponentStatus
- func (c *ImageHeater) GetShortName() string
- func (c *ImageHeater) GetStatus() ComponentStatus
- func (c *ImageHeater) GetType() consts.ComponentType
- func (c *ImageHeater) IsUpdatingResources() bool
- func (ih *ImageHeater) NeedSync() bool
- func (ih *ImageHeater) NeedUpdate() ComponentStatus
- func (c *ImageHeater) SetReadyCondition(status ComponentStatus)
- func (c *ImageHeater) SetStatus(status ComponentStatus)
- func (ih *ImageHeater) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- func (c *ImageHeater) UpdatePreCheck(ctx context.Context) ComponentStatus
- type ImageHeaterTarget
- type InitJob
- func (j *InitJob) Build() *batchv1.Job
- func (j *InitJob) Exists() bool
- func (j *InitJob) Fetch(ctx context.Context) error
- func (c *InitJob) GetComponent() ytv1.Component
- func (c *InitJob) GetCypressPatch() ypatch.PatchSet
- func (c *InitJob) GetFullName() string
- func (c *InitJob) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *InitJob) GetLabeller() *labeller.Labeller
- func (c *InitJob) GetReadyCondition() ComponentStatus
- func (c *InitJob) GetShortName() string
- func (c *InitJob) GetStatus() ComponentStatus
- func (c *InitJob) GetType() consts.ComponentType
- func (j *InitJob) IsCompleted() bool
- func (c *InitJob) IsUpdatingResources() bool
- func (j *InitJob) SetInitScript(script string)
- func (c *InitJob) SetReadyCondition(status ComponentStatus)
- func (c *InitJob) SetStatus(status ComponentStatus)
- func (j *InitJob) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- func (c *InitJob) UpdatePreCheck(ctx context.Context) ComponentStatus
- type KafkaProxy
- func (c *KafkaProxy) Exists() bool
- func (kp *KafkaProxy) Fetch(ctx context.Context) error
- func (c *KafkaProxy) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *KafkaProxy) NeedSync() bool
- func (c *KafkaProxy) NeedUpdate() ComponentStatus
- func (kp *KafkaProxy) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- type Master
- func (c *Master) Exists() bool
- func (m *Master) Fetch(ctx context.Context) error
- func (m *Master) GetCypressPatch() ypatch.PatchSet
- func (c *Master) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *Master) NeedSync() bool
- func (c *Master) NeedUpdate() ComponentStatus
- func (m *Master) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- type MasterCache
- func (c *MasterCache) Exists() bool
- func (mc *MasterCache) Fetch(ctx context.Context) error
- func (c *MasterCache) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *MasterCache) NeedSync() bool
- func (c *MasterCache) NeedUpdate() ComponentStatus
- func (mc *MasterCache) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- func (mc *MasterCache) UpdatePreCheck(ctx context.Context) ComponentStatus
- type MasterHydra
- type MasterInfo
- type MasterState
- type MastersWithMaintenance
- type Medium
- type OffshoreDataGateway
- func (c *OffshoreDataGateway) Exists() bool
- func (p *OffshoreDataGateway) Fetch(ctx context.Context) error
- func (c *OffshoreDataGateway) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *OffshoreDataGateway) NeedSync() bool
- func (c *OffshoreDataGateway) NeedUpdate() ComponentStatus
- func (p *OffshoreDataGateway) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- type Option
- type QueryTracker
- func (c *QueryTracker) Exists() bool
- func (qt *QueryTracker) Fetch(ctx context.Context) error
- func (c *QueryTracker) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *QueryTracker) NeedSync() bool
- func (c *QueryTracker) NeedUpdate() ComponentStatus
- func (qt *QueryTracker) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- func (qt *QueryTracker) UpdatePreCheck(ctx context.Context) ComponentStatus
- type QueueAgent
- func (c *QueueAgent) Exists() bool
- func (qa *QueueAgent) Fetch(ctx context.Context) error
- func (c *QueueAgent) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *QueueAgent) NeedSync() bool
- func (c *QueueAgent) NeedUpdate() ComponentStatus
- func (qa *QueueAgent) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- func (qa *QueueAgent) UpdatePreCheck(ctx context.Context) ComponentStatus
- type RemoteDataNode
- func (c *RemoteDataNode) Exists() bool
- func (n *RemoteDataNode) Fetch(ctx context.Context) error
- func (c *RemoteDataNode) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *RemoteDataNode) NeedSync() bool
- func (c *RemoteDataNode) NeedUpdate() ComponentStatus
- func (n *RemoteDataNode) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- type RemoteExecNode
- type RemoteTabletNode
- func (c *RemoteTabletNode) Exists() bool
- func (n *RemoteTabletNode) Fetch(ctx context.Context) error
- func (c *RemoteTabletNode) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *RemoteTabletNode) NeedSync() bool
- func (c *RemoteTabletNode) NeedUpdate() ComponentStatus
- func (n *RemoteTabletNode) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- type RpcProxy
- func (c *RpcProxy) Exists() bool
- func (rp *RpcProxy) Fetch(ctx context.Context) error
- func (c *RpcProxy) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *RpcProxy) NeedSync() bool
- func (c *RpcProxy) NeedUpdate() ComponentStatus
- func (rp *RpcProxy) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- type Scheduler
- func (c *Scheduler) Exists() bool
- func (s *Scheduler) Fetch(ctx context.Context) error
- func (c *Scheduler) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *Scheduler) NeedSync() bool
- func (c *Scheduler) NeedUpdate() ComponentStatus
- func (s *Scheduler) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- func (s *Scheduler) UpdatePreCheck(ctx context.Context) ComponentStatus
- type Spyt
- type StrawberryController
- func (c *StrawberryController) Exists() bool
- func (c *StrawberryController) Fetch(ctx context.Context) error
- func (c *StrawberryController) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *StrawberryController) NeedSync() bool
- func (c *StrawberryController) NeedUpdate() ComponentStatus
- func (c *StrawberryController) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- type SyncStatus
- type TabletBalancer
- func (c *TabletBalancer) Exists() bool
- func (tb *TabletBalancer) Fetch(ctx context.Context) error
- func (c *TabletBalancer) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *TabletBalancer) NeedSync() bool
- func (c *TabletBalancer) NeedUpdate() ComponentStatus
- func (tb *TabletBalancer) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- type TabletCellBundleHealth
- type TabletNode
- func (c *TabletNode) Exists() bool
- func (tn *TabletNode) Fetch(ctx context.Context) error
- func (c *TabletNode) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *TabletNode) NeedSync() bool
- func (c *TabletNode) NeedUpdate() ComponentStatus
- func (tn *TabletNode) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- type TcpProxy
- func (c *TcpProxy) Exists() bool
- func (tp *TcpProxy) Fetch(ctx context.Context) error
- func (c *TcpProxy) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *TcpProxy) NeedSync() bool
- func (c *TcpProxy) NeedUpdate() ComponentStatus
- func (tp *TcpProxy) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- type Timbertruck
- func (tt *Timbertruck) Exists() bool
- func (tt *Timbertruck) Fetch(ctx context.Context) error
- func (c *Timbertruck) GetComponent() ytv1.Component
- func (c *Timbertruck) GetCypressPatch() ypatch.PatchSet
- func (tt *Timbertruck) GetDeliveryLoggers() []ComponentLoggers
- func (c *Timbertruck) GetFullName() string
- func (c *Timbertruck) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *Timbertruck) GetLabeller() *labeller.Labeller
- func (c *Timbertruck) GetReadyCondition() ComponentStatus
- func (c *Timbertruck) GetShortName() string
- func (c *Timbertruck) GetStatus() ComponentStatus
- func (c *Timbertruck) GetType() consts.ComponentType
- func (c *Timbertruck) IsUpdatingResources() bool
- func (tt *Timbertruck) NeedSync() bool
- func (tt *Timbertruck) NeedUpdate() ComponentStatus
- func (c *Timbertruck) SetReadyCondition(status ComponentStatus)
- func (c *Timbertruck) SetStatus(status ComponentStatus)
- func (tt *Timbertruck) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- func (c *Timbertruck) UpdatePreCheck(ctx context.Context) ComponentStatus
- type UI
- type YqlAgent
- func (c *YqlAgent) Exists() bool
- func (yqla *YqlAgent) Fetch(ctx context.Context) error
- func (yqla *YqlAgent) GetCypressPatch() ypatch.PatchSet
- func (yqla *YqlAgent) GetFullName() string
- func (c *YqlAgent) GetImageHeaterTarget() *ImageHeaterTarget
- func (yqla *YqlAgent) GetShortName() string
- func (c *YqlAgent) NeedSync() bool
- func (c *YqlAgent) NeedUpdate() ComponentStatus
- func (yqla *YqlAgent) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- func (yqla *YqlAgent) UpdatePreCheck(ctx context.Context) ComponentStatus
- type YtsaurusClient
- func (yc *YtsaurusClient) AreMasterSnapshotsBuilt(ctx context.Context, monitoringPaths []string) (bool, error)
- func (yc *YtsaurusClient) AreTabletCellsRemoved(ctx context.Context) (bool, error)
- func (yc *YtsaurusClient) BuildCypressPatch(ctx context.Context) (*corev1.ConfigMap, ypatch.PatchSet, error)
- func (yc *YtsaurusClient) BuildMasterSnapshots(ctx context.Context) error
- func (yc *YtsaurusClient) DisableSafeMode(ctx context.Context) error
- func (yc *YtsaurusClient) EnableSafeMode(ctx context.Context) error
- func (yc *YtsaurusClient) Exists() bool
- func (yc *YtsaurusClient) Fetch(ctx context.Context) error
- func (c *YtsaurusClient) GetComponent() ytv1.Component
- func (yc *YtsaurusClient) GetCypressPatch() ypatch.PatchSet
- func (c *YtsaurusClient) GetFullName() string
- func (c *YtsaurusClient) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *YtsaurusClient) GetLabeller() *labeller.Labeller
- func (yc *YtsaurusClient) GetMasterMonitoringPaths(ctx context.Context) ([]string, error)
- func (c *YtsaurusClient) GetReadyCondition() ComponentStatus
- func (c *YtsaurusClient) GetShortName() string
- func (c *YtsaurusClient) GetStatus() ComponentStatus
- func (yc *YtsaurusClient) GetTabletCells(ctx context.Context) ([]ytv1.TabletCellBundleInfo, error)
- func (c *YtsaurusClient) GetType() consts.ComponentType
- func (yc *YtsaurusClient) GetYtClient() yt.Client
- func (yc *YtsaurusClient) HandlePossibilityCheck(ctx context.Context) (ok bool, msg string, err error)
- func (yc *YtsaurusClient) IsBundleControllerDisabled(ctx context.Context) (*bool, error)
- func (c *YtsaurusClient) IsUpdatingResources() bool
- func (yc *YtsaurusClient) NeedSync() bool
- func (yc *YtsaurusClient) NeedSyncCypressPatch() ComponentStatus
- func (yc *YtsaurusClient) NeedUpdate() ComponentStatus
- func (yc *YtsaurusClient) RecoverTableCells(ctx context.Context, bundles []ytv1.TabletCellBundleInfo) error
- func (yc *YtsaurusClient) RemoveTabletCells(ctx context.Context) error
- func (yc *YtsaurusClient) SetBundleControllerDisabled(ctx context.Context, disabled *bool) error
- func (c *YtsaurusClient) SetReadyCondition(status ComponentStatus)
- func (c *YtsaurusClient) SetStatus(status ComponentStatus)
- func (yc *YtsaurusClient) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- func (yc *YtsaurusClient) SyncCypressPatch(ctx context.Context) error
- func (c *YtsaurusClient) UpdatePreCheck(ctx context.Context) ComponentStatus
Constants ¶
const ( ConfigFormatYson = "yson" ConfigFormatJson = "json" ConfigFormatJsonWithJsPrologue = "json_with_js_prologue" ConfigFormatToml = "toml" )
const ( SysBundle string = "sys" DefaultBundle string = "default" )
const ChytInitClusterJobConfigFileName = "chyt-init-cluster.yson"
const ControllerConfigFileName = "strawberry-controller.yson"
const (
JsPrologue string = "module.exports = "
)
const ( // OnDeleteUpdateModeWarningTimeout is the duration after which a warning is logged // if the component is still waiting for manual pod deletion in OnDelete mode OnDeleteUpdateModeWarningTimeout = 15 * 60 // 15 minutes in seconds )
const UIClustersConfigFileName = "clusters-config.json"
const UICustomConfigFileName = "common.js"
Variables ¶
This section is empty.
Functions ¶
func AddAffinity ¶
func AddAffinity(statefulSet *appsv1.StatefulSet, nodeSelectorRequirementKey string, nodeSelectorRequirementValues []string)
func AddSidecarsToPodSpec ¶
func CreateTabletCells ¶
func CreateUser ¶
func IsInstanceCountEqualYTSpec ¶
func IsInstanceCountEqualYTSpec(ctx context.Context, ytClient yt.Client, componentType consts.ComponentType, expectedCount int) error
IsInstanceCountEqualYTSpec checks if the number of instances registered in YTsaurus matches the expected instanceCount from the spec.
func IsUpdatingComponent ¶
func RunIfCondition ¶
func RunIfExists ¶
func RunIfNonexistent ¶
func SetWithIgnoreExisting ¶
func WaitTabletCellHealth ¶
Types ¶
type BundleController ¶
type BundleController struct {
// contains filtered or unexported fields
}
func NewBundleController ¶
func NewBundleController( cfgen *ytconfig.Generator, ytsaurus *apiproxy.Ytsaurus, ) *BundleController
func (*BundleController) Exists ¶ added in v0.31.0
func (bc *BundleController) Exists() bool
func (*BundleController) GetImageHeaterTarget ¶ added in v0.31.0
func (c *BundleController) GetImageHeaterTarget() *ImageHeaterTarget
func (*BundleController) NeedUpdate ¶ added in v0.31.0
func (c *BundleController) NeedUpdate() ComponentStatus
func (*BundleController) Sync ¶
func (bc *BundleController) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
type Component ¶
type Component interface {
resources.Fetchable
GetStatus() ComponentStatus
SetStatus(status ComponentStatus)
// NeedSync returns true when component is need, able and permitted to sync resources.
NeedSync() bool
// NeedUpdate returns SyncStatusNeedUpdate when component needs instance update.
NeedUpdate() ComponentStatus
Sync(ctx context.Context, dry bool) (ComponentStatus, error)
GetFullName() string
GetShortName() string
GetType() consts.ComponentType
GetComponent() ytv1.Component
// Access component status saved as status condition in controller object.
GetReadyCondition() ComponentStatus
SetReadyCondition(status ComponentStatus)
GetLabeller() *labeller.Labeller
GetImageHeaterTarget() *ImageHeaterTarget
GetCypressPatch() ypatch.PatchSet
UpdatePreCheck(ctx context.Context) ComponentStatus
}
type ComponentLoggers ¶
type ComponentLoggers struct {
ComponentName string
StructuredLoggers []ytv1.StructuredLoggerSpec
LogsDeliveryPath string
}
type ComponentStatus ¶
type ComponentStatus struct {
Component string // Set by SetStatus
SyncStatus SyncStatus
Message string
}
func ComponentStatusBlocked ¶
func ComponentStatusBlocked(format string, a ...any) ComponentStatus
func ComponentStatusBlockedBy ¶
func ComponentStatusBlockedBy(format string, a ...any) ComponentStatus
func ComponentStatusNeedUpdate ¶
func ComponentStatusNeedUpdate(format string, a ...any) ComponentStatus
func ComponentStatusPending ¶
func ComponentStatusPending(format string, a ...any) ComponentStatus
func ComponentStatusReady ¶
func ComponentStatusReady() ComponentStatus
func ComponentStatusReadyAfter ¶
func ComponentStatusReadyAfter(format string, a ...any) ComponentStatus
func ComponentStatusSprintf ¶ added in v0.31.0
func ComponentStatusSprintf(status SyncStatus, format string, a ...any) ComponentStatus
func ComponentStatusUpdateStep ¶
func ComponentStatusUpdateStep(format string, a ...any) ComponentStatus
func ComponentStatusUpdating ¶
func ComponentStatusUpdating(format string, a ...any) ComponentStatus
func ComponentStatusWaitingFor ¶
func ComponentStatusWaitingFor(format string, a ...any) ComponentStatus
func SimpleStatus ¶
func SimpleStatus(status SyncStatus) ComponentStatus
TODO(khlebnikov): Replace this stub with status with meaningful message.
func (ComponentStatus) Blocker ¶ added in v0.31.0
func (cs ComponentStatus) Blocker() ComponentStatus
func (ComponentStatus) IsNeedUpdate ¶ added in v0.31.0
func (cs ComponentStatus) IsNeedUpdate() bool
func (ComponentStatus) IsReady ¶ added in v0.31.0
func (cs ComponentStatus) IsReady() bool
func (ComponentStatus) IsRunning ¶
func (cs ComponentStatus) IsRunning() bool
func (ComponentStatus) IsUndefined ¶ added in v0.31.0
func (cs ComponentStatus) IsUndefined() bool
type ConfigFormat ¶
type ConfigFormat string
type ConfigGenerator ¶
type ConfigGenerator struct {
FileName string
// Format is the desired serialization format for config map.
// Note that conversion from YSON to Format (if needed) is performed as a very last
// step of config generation pipeline.
Format ConfigFormat
// Generator must generate config in YSON.
Generator ConfigGeneratorFunc
}
type ConfigGeneratorFunc ¶
type ConfigMapBuilder ¶
type ConfigMapBuilder struct {
// contains filtered or unexported fields
}
func NewConfigMapBuilder ¶
func NewConfigMapBuilder( labeller *labeller.Labeller, apiProxy apiproxy.APIProxy, name string, configOverrides *corev1.LocalObjectReference, generators ...ConfigGenerator, ) *ConfigMapBuilder
func NewJobsSidecarConfig ¶
func NewJobsSidecarConfig( labeller *labeller.Labeller, apiProxy apiproxy.APIProxy, criConfig *ytconfig.CRIConfigGenerator, configOverrides *corev1.LocalObjectReference, ) *ConfigMapBuilder
func (*ConfigMapBuilder) AddGenerator ¶
func (h *ConfigMapBuilder) AddGenerator(fileName string, format ConfigFormat, generator ConfigGeneratorFunc)
func (*ConfigMapBuilder) Exists ¶
func (h *ConfigMapBuilder) Exists() bool
func (*ConfigMapBuilder) GetConfigMapName ¶
func (h *ConfigMapBuilder) GetConfigMapName() string
func (*ConfigMapBuilder) RemoveIfExists ¶
func (h *ConfigMapBuilder) RemoveIfExists(ctx context.Context) error
type ControllerAgent ¶
type ControllerAgent struct {
// contains filtered or unexported fields
}
func NewControllerAgent ¶
func (*ControllerAgent) GetImageHeaterTarget ¶ added in v0.31.0
func (c *ControllerAgent) GetImageHeaterTarget() *ImageHeaterTarget
func (*ControllerAgent) NeedUpdate ¶ added in v0.31.0
func (c *ControllerAgent) NeedUpdate() ComponentStatus
func (*ControllerAgent) Sync ¶
func (ca *ControllerAgent) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
func (*ControllerAgent) UpdatePreCheck ¶
func (ca *ControllerAgent) UpdatePreCheck(ctx context.Context) ComponentStatus
type CypressProxy ¶
type CypressProxy struct {
// contains filtered or unexported fields
}
func NewCypressProxy ¶
func NewCypressProxy(cfgen *ytconfig.Generator, ytsaurus *apiproxy.Ytsaurus) *CypressProxy
func (*CypressProxy) GetImageHeaterTarget ¶ added in v0.31.0
func (c *CypressProxy) GetImageHeaterTarget() *ImageHeaterTarget
func (*CypressProxy) NeedUpdate ¶ added in v0.31.0
func (c *CypressProxy) NeedUpdate() ComponentStatus
func (*CypressProxy) Sync ¶
func (cyp *CypressProxy) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
type DataNode ¶
type DataNode struct {
// contains filtered or unexported fields
}
func NewDataNode ¶
func NewDataNode( cfgen *ytconfig.NodeGenerator, ytsaurus *apiproxy.Ytsaurus, master Component, yc internalYtsaurusClient, spec ytv1.DataNodesSpec, ) *DataNode
func (*DataNode) GetImageHeaterTarget ¶ added in v0.31.0
func (c *DataNode) GetImageHeaterTarget() *ImageHeaterTarget
func (*DataNode) NeedUpdate ¶ added in v0.31.0
func (c *DataNode) NeedUpdate() ComponentStatus
func (*DataNode) UpdatePreCheck ¶ added in v0.31.0
func (n *DataNode) UpdatePreCheck(ctx context.Context) ComponentStatus
type DataNodeMeta ¶
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
func NewDiscovery ¶
func (*Discovery) GetImageHeaterTarget ¶ added in v0.31.0
func (c *Discovery) GetImageHeaterTarget() *ImageHeaterTarget
func (*Discovery) NeedUpdate ¶ added in v0.31.0
func (c *Discovery) NeedUpdate() ComponentStatus
func (*Discovery) UpdatePreCheck ¶
func (d *Discovery) UpdatePreCheck(ctx context.Context) ComponentStatus
type ExecNode ¶
type ExecNode struct {
// contains filtered or unexported fields
}
func NewExecNode ¶
func NewExecNode( cfgen *ytconfig.NodeGenerator, ytsaurus *apiproxy.Ytsaurus, master Component, spec ytv1.ExecNodesSpec, yc internalYtsaurusClient, ) *ExecNode
func (*ExecNode) NeedUpdate ¶ added in v0.31.0
func (n *ExecNode) NeedUpdate() ComponentStatus
func (*ExecNode) UpdatePreCheck ¶ added in v0.31.0
func (n *ExecNode) UpdatePreCheck(ctx context.Context) ComponentStatus
type HttpProxy ¶
type HttpProxy struct {
// contains filtered or unexported fields
}
func NewHTTPProxy ¶
func (*HttpProxy) GetImageHeaterTarget ¶ added in v0.31.0
func (c *HttpProxy) GetImageHeaterTarget() *ImageHeaterTarget
func (*HttpProxy) NeedUpdate ¶ added in v0.31.0
func (c *HttpProxy) NeedUpdate() ComponentStatus
type ImageHeater ¶ added in v0.31.0
type ImageHeater struct {
// contains filtered or unexported fields
}
func NewImageHeater ¶ added in v0.31.0
func (*ImageHeater) Exists ¶ added in v0.31.0
func (ih *ImageHeater) Exists() bool
func (*ImageHeater) Fetch ¶ added in v0.31.0
func (ih *ImageHeater) Fetch(ctx context.Context) error
func (*ImageHeater) GetComponent ¶ added in v0.31.0
func (*ImageHeater) GetCypressPatch ¶ added in v0.31.0
func (*ImageHeater) GetFullName ¶ added in v0.31.0
func (c *ImageHeater) GetFullName() string
GetFullName returns component's name, which is used as an identifier in component management and for mentioning in logs. For example for master component name is "Master", For data node name looks like "DataNode<NameFromSpec>".
func (*ImageHeater) GetHeaterStatus ¶ added in v0.31.0
func (ih *ImageHeater) GetHeaterStatus(component ytv1.Component) ComponentStatus
func (*ImageHeater) GetImageHeaterTarget ¶ added in v0.31.0
func (c *ImageHeater) GetImageHeaterTarget() *ImageHeaterTarget
func (*ImageHeater) GetLabeller ¶ added in v0.31.0
func (*ImageHeater) GetReadyCondition ¶ added in v0.31.0
func (c *ImageHeater) GetReadyCondition() ComponentStatus
func (*ImageHeater) GetShortName ¶ added in v0.31.0
func (c *ImageHeater) GetShortName() string
func (*ImageHeater) GetStatus ¶ added in v0.31.0
func (c *ImageHeater) GetStatus() ComponentStatus
func (*ImageHeater) GetType ¶ added in v0.31.0
func (c *ImageHeater) GetType() consts.ComponentType
func (*ImageHeater) IsUpdatingResources ¶ added in v0.31.0
func (c *ImageHeater) IsUpdatingResources() bool
func (*ImageHeater) NeedSync ¶ added in v0.31.0
func (ih *ImageHeater) NeedSync() bool
func (*ImageHeater) NeedUpdate ¶ added in v0.31.0
func (ih *ImageHeater) NeedUpdate() ComponentStatus
func (*ImageHeater) SetReadyCondition ¶ added in v0.31.0
func (c *ImageHeater) SetReadyCondition(status ComponentStatus)
func (*ImageHeater) SetStatus ¶ added in v0.31.0
func (c *ImageHeater) SetStatus(status ComponentStatus)
func (*ImageHeater) Sync ¶ added in v0.31.0
func (ih *ImageHeater) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
Image heater becomes ready after creation of daemon sets but report progress. Daemon sets are not deleted after completion to warm up new nodes, and not recreated because image heating is not strictly required.
func (*ImageHeater) UpdatePreCheck ¶ added in v0.31.0
func (c *ImageHeater) UpdatePreCheck(ctx context.Context) ComponentStatus
type ImageHeaterTarget ¶ added in v0.31.0
type ImageHeaterTarget struct {
Images map[string]string
ImagePullSecrets []corev1.LocalObjectReference
NodeSelector map[string]string
Tolerations []corev1.Toleration
NodeAffinity *corev1.NodeAffinity
}
type InitJob ¶
type InitJob struct {
// contains filtered or unexported fields
}
func NewInitJob ¶
func NewInitJob( labeller *labeller.Labeller, apiProxy apiproxy.APIProxy, name, configFileName string, generator ConfigGeneratorFunc, commonSpec *ytv1.CommonSpec, commonPodSpec *ytv1.PodSpec, instanceSpec *ytv1.InstanceSpec, ) *InitJob
func NewInitJobForYtsaurus ¶
func NewInitJobForYtsaurus( labeller *labeller.Labeller, ytsaurus *apiproxy.Ytsaurus, name, configFileName string, generator ConfigGeneratorFunc, instanceSpec *ytv1.InstanceSpec, ) *InitJob
func (*InitJob) GetComponent ¶ added in v0.31.0
func (*InitJob) GetCypressPatch ¶
func (*InitJob) GetFullName ¶
func (c *InitJob) GetFullName() string
GetFullName returns component's name, which is used as an identifier in component management and for mentioning in logs. For example for master component name is "Master", For data node name looks like "DataNode<NameFromSpec>".
func (*InitJob) GetImageHeaterTarget ¶ added in v0.31.0
func (c *InitJob) GetImageHeaterTarget() *ImageHeaterTarget
func (*InitJob) GetLabeller ¶
func (*InitJob) GetReadyCondition ¶ added in v0.31.0
func (c *InitJob) GetReadyCondition() ComponentStatus
func (*InitJob) GetShortName ¶
func (c *InitJob) GetShortName() string
func (*InitJob) GetStatus ¶ added in v0.31.0
func (c *InitJob) GetStatus() ComponentStatus
func (*InitJob) GetType ¶
func (c *InitJob) GetType() consts.ComponentType
func (*InitJob) IsCompleted ¶
func (*InitJob) IsUpdatingResources ¶ added in v0.31.0
func (c *InitJob) IsUpdatingResources() bool
func (*InitJob) SetInitScript ¶
func (*InitJob) SetReadyCondition ¶ added in v0.31.0
func (c *InitJob) SetReadyCondition(status ComponentStatus)
func (*InitJob) SetStatus ¶ added in v0.31.0
func (c *InitJob) SetStatus(status ComponentStatus)
func (*InitJob) UpdatePreCheck ¶
func (c *InitJob) UpdatePreCheck(ctx context.Context) ComponentStatus
type KafkaProxy ¶
type KafkaProxy struct {
// contains filtered or unexported fields
}
func NewKafkaProxy ¶
func NewKafkaProxy(cfgen *ytconfig.Generator, ytsaurus *apiproxy.Ytsaurus, masterReconciler Component, spec ytv1.KafkaProxiesSpec) *KafkaProxy
func (*KafkaProxy) GetImageHeaterTarget ¶ added in v0.31.0
func (c *KafkaProxy) GetImageHeaterTarget() *ImageHeaterTarget
func (*KafkaProxy) NeedUpdate ¶ added in v0.31.0
func (c *KafkaProxy) NeedUpdate() ComponentStatus
func (*KafkaProxy) Sync ¶
func (kp *KafkaProxy) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
type Master ¶
type Master struct {
// contains filtered or unexported fields
}
func (*Master) GetCypressPatch ¶
func (*Master) GetImageHeaterTarget ¶ added in v0.31.0
func (c *Master) GetImageHeaterTarget() *ImageHeaterTarget
func (*Master) NeedUpdate ¶ added in v0.31.0
func (c *Master) NeedUpdate() ComponentStatus
type MasterCache ¶
type MasterCache struct {
// contains filtered or unexported fields
}
func NewMasterCache ¶
func NewMasterCache(cfgen *ytconfig.Generator, ytsaurus *apiproxy.Ytsaurus, yc internalYtsaurusClient) *MasterCache
func (*MasterCache) GetImageHeaterTarget ¶ added in v0.31.0
func (c *MasterCache) GetImageHeaterTarget() *ImageHeaterTarget
func (*MasterCache) NeedUpdate ¶ added in v0.31.0
func (c *MasterCache) NeedUpdate() ComponentStatus
func (*MasterCache) Sync ¶
func (mc *MasterCache) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
func (*MasterCache) UpdatePreCheck ¶
func (mc *MasterCache) UpdatePreCheck(ctx context.Context) ComponentStatus
type MasterHydra ¶
type MasterHydra struct {
ReadOnly bool `yson:"read_only"`
LastSnapshotReadOnly bool `yson:"last_snapshot_read_only"`
Active bool `yson:"active"`
State MasterState `yson:"state"`
}
type MasterInfo ¶
type MasterState ¶
type MasterState string
const ( MasterStateLeading MasterState = "leading" MasterStateFollowing MasterState = "following" )
type MastersWithMaintenance ¶
type OffshoreDataGateway ¶
type OffshoreDataGateway struct {
// contains filtered or unexported fields
}
func NewOffshoreDataGateways ¶
func NewOffshoreDataGateways( cfgen *ytconfig.NodeGenerator, proxy apiproxy.APIProxy, spec ytv1.OffshoreDataGatewaySpec, commonSpec ytv1.CommonSpec, ) *OffshoreDataGateway
func (*OffshoreDataGateway) GetImageHeaterTarget ¶ added in v0.31.0
func (c *OffshoreDataGateway) GetImageHeaterTarget() *ImageHeaterTarget
func (*OffshoreDataGateway) NeedSync ¶ added in v0.31.0
func (c *OffshoreDataGateway) NeedSync() bool
func (*OffshoreDataGateway) NeedUpdate ¶ added in v0.31.0
func (c *OffshoreDataGateway) NeedUpdate() ComponentStatus
func (*OffshoreDataGateway) Sync ¶
func (p *OffshoreDataGateway) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
type Option ¶
type Option func(opts *options)
func WithContainerPorts ¶
func WithContainerPorts(ports ...corev1.ContainerPort) Option
func WithSidecarImage ¶
type QueryTracker ¶
type QueryTracker struct {
// contains filtered or unexported fields
}
func NewQueryTracker ¶
func (*QueryTracker) GetImageHeaterTarget ¶ added in v0.31.0
func (c *QueryTracker) GetImageHeaterTarget() *ImageHeaterTarget
func (*QueryTracker) NeedUpdate ¶ added in v0.31.0
func (c *QueryTracker) NeedUpdate() ComponentStatus
func (*QueryTracker) Sync ¶
func (qt *QueryTracker) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
func (*QueryTracker) UpdatePreCheck ¶
func (qt *QueryTracker) UpdatePreCheck(ctx context.Context) ComponentStatus
type QueueAgent ¶
type QueueAgent struct {
// contains filtered or unexported fields
}
func NewQueueAgent ¶
func (*QueueAgent) GetImageHeaterTarget ¶ added in v0.31.0
func (c *QueueAgent) GetImageHeaterTarget() *ImageHeaterTarget
func (*QueueAgent) NeedUpdate ¶ added in v0.31.0
func (c *QueueAgent) NeedUpdate() ComponentStatus
func (*QueueAgent) Sync ¶
func (qa *QueueAgent) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
func (*QueueAgent) UpdatePreCheck ¶
func (qa *QueueAgent) UpdatePreCheck(ctx context.Context) ComponentStatus
type RemoteDataNode ¶
type RemoteDataNode struct {
// contains filtered or unexported fields
}
func NewRemoteDataNodes ¶
func NewRemoteDataNodes( cfgen *ytconfig.NodeGenerator, nodes *ytv1.RemoteDataNodes, proxy apiproxy.APIProxy, spec ytv1.DataNodesSpec, commonSpec ytv1.CommonSpec, ) *RemoteDataNode
func (*RemoteDataNode) GetImageHeaterTarget ¶ added in v0.31.0
func (c *RemoteDataNode) GetImageHeaterTarget() *ImageHeaterTarget
func (*RemoteDataNode) NeedUpdate ¶ added in v0.31.0
func (c *RemoteDataNode) NeedUpdate() ComponentStatus
func (*RemoteDataNode) Sync ¶
func (n *RemoteDataNode) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
type RemoteExecNode ¶
type RemoteExecNode struct {
// contains filtered or unexported fields
}
func NewRemoteExecNodes ¶
func NewRemoteExecNodes( cfgen *ytconfig.NodeGenerator, nodes *ytv1.RemoteExecNodes, proxy apiproxy.APIProxy, spec ytv1.ExecNodesSpec, commonSpec ytv1.CommonSpec, ) *RemoteExecNode
func (*RemoteExecNode) NeedUpdate ¶ added in v0.31.0
func (n *RemoteExecNode) NeedUpdate() ComponentStatus
func (*RemoteExecNode) Sync ¶
func (n *RemoteExecNode) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
type RemoteTabletNode ¶
type RemoteTabletNode struct {
// contains filtered or unexported fields
}
func NewRemoteTabletNodes ¶
func NewRemoteTabletNodes( cfgen *ytconfig.NodeGenerator, nodes *ytv1.RemoteTabletNodes, proxy apiproxy.APIProxy, spec ytv1.TabletNodesSpec, commonSpec ytv1.CommonSpec, ) *RemoteTabletNode
func (*RemoteTabletNode) GetImageHeaterTarget ¶ added in v0.31.0
func (c *RemoteTabletNode) GetImageHeaterTarget() *ImageHeaterTarget
func (*RemoteTabletNode) NeedUpdate ¶ added in v0.31.0
func (c *RemoteTabletNode) NeedUpdate() ComponentStatus
func (*RemoteTabletNode) Sync ¶
func (n *RemoteTabletNode) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
type RpcProxy ¶
type RpcProxy struct {
// contains filtered or unexported fields
}
func NewRPCProxy ¶
func (*RpcProxy) GetImageHeaterTarget ¶ added in v0.31.0
func (c *RpcProxy) GetImageHeaterTarget() *ImageHeaterTarget
func (*RpcProxy) NeedUpdate ¶ added in v0.31.0
func (c *RpcProxy) NeedUpdate() ComponentStatus
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func NewScheduler ¶
func (*Scheduler) GetImageHeaterTarget ¶ added in v0.31.0
func (c *Scheduler) GetImageHeaterTarget() *ImageHeaterTarget
func (*Scheduler) NeedUpdate ¶ added in v0.31.0
func (c *Scheduler) NeedUpdate() ComponentStatus
func (*Scheduler) UpdatePreCheck ¶
func (s *Scheduler) UpdatePreCheck(ctx context.Context) ComponentStatus
type StrawberryController ¶
type StrawberryController struct {
// contains filtered or unexported fields
}
func NewStrawberryController ¶
func (*StrawberryController) Exists ¶ added in v0.31.0
func (c *StrawberryController) Exists() bool
func (*StrawberryController) Fetch ¶
func (c *StrawberryController) Fetch(ctx context.Context) error
func (*StrawberryController) GetImageHeaterTarget ¶ added in v0.31.0
func (c *StrawberryController) GetImageHeaterTarget() *ImageHeaterTarget
func (*StrawberryController) NeedSync ¶ added in v0.31.0
func (c *StrawberryController) NeedSync() bool
func (*StrawberryController) NeedUpdate ¶ added in v0.31.0
func (c *StrawberryController) NeedUpdate() ComponentStatus
func (*StrawberryController) Sync ¶
func (c *StrawberryController) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
type SyncStatus ¶
type SyncStatus string
const ( SyncStatusUndefined SyncStatus = "" // Status is unknown SyncStatusReady SyncStatus = "Ready" // Running, reconciliation is not required SyncStatusBlocked SyncStatus = "Blocked" // Reconciliation is impossible SyncStatusPending SyncStatus = "Pending" // Reconciliation is possible SyncStatusNeedUpdate SyncStatus = "NeedUpdate" // Running, update is required SyncStatusUpdating SyncStatus = "Updating" // Update in progress )
type TabletBalancer ¶
type TabletBalancer struct {
// contains filtered or unexported fields
}
func NewTabletBalancer ¶
func NewTabletBalancer( cfgen *ytconfig.Generator, ytsaurus *apiproxy.Ytsaurus, ) *TabletBalancer
func (*TabletBalancer) GetImageHeaterTarget ¶ added in v0.31.0
func (c *TabletBalancer) GetImageHeaterTarget() *ImageHeaterTarget
func (*TabletBalancer) NeedUpdate ¶ added in v0.31.0
func (c *TabletBalancer) NeedUpdate() ComponentStatus
func (*TabletBalancer) Sync ¶
func (tb *TabletBalancer) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
type TabletCellBundleHealth ¶
type TabletNode ¶
type TabletNode struct {
// contains filtered or unexported fields
}
func NewTabletNode ¶
func NewTabletNode( cfgen *ytconfig.NodeGenerator, ytsaurus *apiproxy.Ytsaurus, ytsaurusClient internalYtsaurusClient, spec ytv1.TabletNodesSpec, doInitiailization bool, ) *TabletNode
func (*TabletNode) GetImageHeaterTarget ¶ added in v0.31.0
func (c *TabletNode) GetImageHeaterTarget() *ImageHeaterTarget
func (*TabletNode) NeedUpdate ¶ added in v0.31.0
func (c *TabletNode) NeedUpdate() ComponentStatus
func (*TabletNode) Sync ¶
func (tn *TabletNode) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
type TcpProxy ¶
type TcpProxy struct {
// contains filtered or unexported fields
}
func NewTCPProxy ¶
func (*TcpProxy) GetImageHeaterTarget ¶ added in v0.31.0
func (c *TcpProxy) GetImageHeaterTarget() *ImageHeaterTarget
func (*TcpProxy) NeedUpdate ¶ added in v0.31.0
func (c *TcpProxy) NeedUpdate() ComponentStatus
type Timbertruck ¶
type Timbertruck struct {
// contains filtered or unexported fields
}
func NewTimbertruck ¶
func NewTimbertruck( cfgen *ytconfig.Generator, ytsaurus *apiproxy.Ytsaurus, tnds []Component, yc *YtsaurusClient, ) *Timbertruck
func (*Timbertruck) Exists ¶ added in v0.31.0
func (tt *Timbertruck) Exists() bool
func (*Timbertruck) GetComponent ¶ added in v0.31.0
func (*Timbertruck) GetCypressPatch ¶ added in v0.31.0
func (*Timbertruck) GetDeliveryLoggers ¶
func (tt *Timbertruck) GetDeliveryLoggers() []ComponentLoggers
func (*Timbertruck) GetFullName ¶ added in v0.31.0
func (c *Timbertruck) GetFullName() string
GetFullName returns component's name, which is used as an identifier in component management and for mentioning in logs. For example for master component name is "Master", For data node name looks like "DataNode<NameFromSpec>".
func (*Timbertruck) GetImageHeaterTarget ¶ added in v0.31.0
func (c *Timbertruck) GetImageHeaterTarget() *ImageHeaterTarget
func (*Timbertruck) GetLabeller ¶ added in v0.31.0
func (*Timbertruck) GetReadyCondition ¶ added in v0.31.0
func (c *Timbertruck) GetReadyCondition() ComponentStatus
func (*Timbertruck) GetShortName ¶ added in v0.31.0
func (c *Timbertruck) GetShortName() string
func (*Timbertruck) GetStatus ¶ added in v0.31.0
func (c *Timbertruck) GetStatus() ComponentStatus
func (*Timbertruck) GetType ¶ added in v0.31.0
func (c *Timbertruck) GetType() consts.ComponentType
func (*Timbertruck) IsUpdatingResources ¶ added in v0.31.0
func (c *Timbertruck) IsUpdatingResources() bool
func (*Timbertruck) NeedSync ¶ added in v0.31.0
func (tt *Timbertruck) NeedSync() bool
func (*Timbertruck) NeedUpdate ¶ added in v0.31.0
func (tt *Timbertruck) NeedUpdate() ComponentStatus
func (*Timbertruck) SetReadyCondition ¶
func (c *Timbertruck) SetReadyCondition(status ComponentStatus)
func (*Timbertruck) SetStatus ¶ added in v0.31.0
func (c *Timbertruck) SetStatus(status ComponentStatus)
func (*Timbertruck) Sync ¶
func (tt *Timbertruck) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
func (*Timbertruck) UpdatePreCheck ¶ added in v0.31.0
func (c *Timbertruck) UpdatePreCheck(ctx context.Context) ComponentStatus
type UI ¶
type UI struct {
// contains filtered or unexported fields
}
func (*UI) GetImageHeaterTarget ¶ added in v0.31.0
func (c *UI) GetImageHeaterTarget() *ImageHeaterTarget
func (*UI) NeedUpdate ¶ added in v0.31.0
func (c *UI) NeedUpdate() ComponentStatus
type YqlAgent ¶
type YqlAgent struct {
// contains filtered or unexported fields
}
func NewYQLAgent ¶
func (*YqlAgent) GetCypressPatch ¶
func (*YqlAgent) GetFullName ¶
func (*YqlAgent) GetImageHeaterTarget ¶ added in v0.31.0
func (c *YqlAgent) GetImageHeaterTarget() *ImageHeaterTarget
func (*YqlAgent) GetShortName ¶
func (*YqlAgent) NeedUpdate ¶ added in v0.31.0
func (c *YqlAgent) NeedUpdate() ComponentStatus
func (*YqlAgent) UpdatePreCheck ¶
func (yqla *YqlAgent) UpdatePreCheck(ctx context.Context) ComponentStatus
type YtsaurusClient ¶
type YtsaurusClient struct {
// contains filtered or unexported fields
}
func NewYtsaurusClient ¶
func (*YtsaurusClient) AreMasterSnapshotsBuilt ¶
func (*YtsaurusClient) AreTabletCellsRemoved ¶
func (yc *YtsaurusClient) AreTabletCellsRemoved(ctx context.Context) (bool, error)
func (*YtsaurusClient) BuildCypressPatch ¶
func (*YtsaurusClient) BuildMasterSnapshots ¶
func (yc *YtsaurusClient) BuildMasterSnapshots(ctx context.Context) error
func (*YtsaurusClient) DisableSafeMode ¶
func (yc *YtsaurusClient) DisableSafeMode(ctx context.Context) error
func (*YtsaurusClient) EnableSafeMode ¶
func (yc *YtsaurusClient) EnableSafeMode(ctx context.Context) error
func (*YtsaurusClient) Exists ¶ added in v0.31.0
func (yc *YtsaurusClient) Exists() bool
func (*YtsaurusClient) GetComponent ¶ added in v0.31.0
func (*YtsaurusClient) GetCypressPatch ¶
func (yc *YtsaurusClient) GetCypressPatch() ypatch.PatchSet
func (*YtsaurusClient) GetFullName ¶ added in v0.31.0
func (c *YtsaurusClient) GetFullName() string
GetFullName returns component's name, which is used as an identifier in component management and for mentioning in logs. For example for master component name is "Master", For data node name looks like "DataNode<NameFromSpec>".
func (*YtsaurusClient) GetImageHeaterTarget ¶ added in v0.31.0
func (c *YtsaurusClient) GetImageHeaterTarget() *ImageHeaterTarget
func (*YtsaurusClient) GetLabeller ¶ added in v0.31.0
func (*YtsaurusClient) GetMasterMonitoringPaths ¶
func (yc *YtsaurusClient) GetMasterMonitoringPaths(ctx context.Context) ([]string, error)
func (*YtsaurusClient) GetReadyCondition ¶ added in v0.31.0
func (c *YtsaurusClient) GetReadyCondition() ComponentStatus
func (*YtsaurusClient) GetShortName ¶ added in v0.31.0
func (c *YtsaurusClient) GetShortName() string
func (*YtsaurusClient) GetStatus ¶ added in v0.31.0
func (c *YtsaurusClient) GetStatus() ComponentStatus
func (*YtsaurusClient) GetTabletCells ¶
func (yc *YtsaurusClient) GetTabletCells(ctx context.Context) ([]ytv1.TabletCellBundleInfo, error)
func (*YtsaurusClient) GetType ¶ added in v0.31.0
func (c *YtsaurusClient) GetType() consts.ComponentType
func (*YtsaurusClient) GetYtClient ¶
func (yc *YtsaurusClient) GetYtClient() yt.Client
func (*YtsaurusClient) HandlePossibilityCheck ¶
func (*YtsaurusClient) IsBundleControllerDisabled ¶ added in v0.31.0
func (yc *YtsaurusClient) IsBundleControllerDisabled(ctx context.Context) (*bool, error)
func (*YtsaurusClient) IsUpdatingResources ¶ added in v0.31.0
func (c *YtsaurusClient) IsUpdatingResources() bool
func (*YtsaurusClient) NeedSync ¶ added in v0.31.0
func (yc *YtsaurusClient) NeedSync() bool
func (*YtsaurusClient) NeedSyncCypressPatch ¶
func (yc *YtsaurusClient) NeedSyncCypressPatch() ComponentStatus
func (*YtsaurusClient) NeedUpdate ¶ added in v0.31.0
func (yc *YtsaurusClient) NeedUpdate() ComponentStatus
func (*YtsaurusClient) RecoverTableCells ¶
func (yc *YtsaurusClient) RecoverTableCells(ctx context.Context, bundles []ytv1.TabletCellBundleInfo) error
func (*YtsaurusClient) RemoveTabletCells ¶
func (yc *YtsaurusClient) RemoveTabletCells(ctx context.Context) error
func (*YtsaurusClient) SetBundleControllerDisabled ¶ added in v0.31.0
func (yc *YtsaurusClient) SetBundleControllerDisabled(ctx context.Context, disabled *bool) error
func (*YtsaurusClient) SetReadyCondition ¶
func (c *YtsaurusClient) SetReadyCondition(status ComponentStatus)
func (*YtsaurusClient) SetStatus ¶ added in v0.31.0
func (c *YtsaurusClient) SetStatus(status ComponentStatus)
func (*YtsaurusClient) Sync ¶
func (yc *YtsaurusClient) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
func (*YtsaurusClient) SyncCypressPatch ¶
func (yc *YtsaurusClient) SyncCypressPatch(ctx context.Context) error
func (*YtsaurusClient) UpdatePreCheck ¶ added in v0.31.0
func (c *YtsaurusClient) UpdatePreCheck(ctx context.Context) ComponentStatus
Source Files
¶
- bundle_controller.go
- chyt.go
- component.go
- config_map_builder.go
- controller_agent.go
- cypressproxy.go
- data_node.go
- data_node_remote.go
- discovery.go
- exec_node.go
- exec_node_base.go
- exec_node_remote.go
- helpers.go
- httpproxy.go
- image_heater.go
- init_job.go
- kafka_proxy.go
- master.go
- master_caches.go
- microservice.go
- offshore_data_gateway.go
- pods_manager.go
- precheck.go
- query_tracker.go
- queue_agent.go
- rpcproxy.go
- scheduler.go
- server.go
- serveroptions.go
- spyt.go
- strawberry_controller.go
- tablet_balancer.go
- tablet_node.go
- tablet_node_remote.go
- tcpproxy.go
- timbertruck.go
- ui.go
- user.go
- volume.go
- yql_agent.go
- ytsaurus_client.go