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 CheckPathPermission(path, subject, permission string) string
- 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 FindVolumeMountForPath(volumeMounts []corev1.VolumeMount, path string) *corev1.VolumeMount
- 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 TimbertruckDeliveryEnabled(spec *ytv1.YtsaurusSpec) bool
- 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 (c *BundleController) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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 ComponentStatusStarted(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) Sync(ctx context.Context) error
- type ControllerAgent
- func (c *ControllerAgent) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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 (c *ImageHeater) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- func (ih *ImageHeater) Exists() bool
- func (ih *ImageHeater) Fetch(ctx context.Context) error
- func (ih *ImageHeater) GetHeaterStatus(component ytv1.Component) ComponentStatus
- func (ih *ImageHeater) NeedSync() bool
- func (ih *ImageHeater) NeedUpdate() ComponentStatus
- func (ih *ImageHeater) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- type ImageHeaterTarget
- type InitJob
- func (j *InitJob) AddInitJobScript(generator func() string)
- func (j *InitJob) AddScript(fileName string, generator TextGeneratorFunc)
- 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) Name() string
- func (j *InitJob) Restart()
- func (j *InitJob) RunScript(ctx context.Context, dry bool, reason string, scriptFileName string, ...) (ComponentStatus, error)
- func (j *InitJob) RunUpdateScript(ctx context.Context, dry bool, ytsaurus *apiproxy.Ytsaurus, ...) (ComponentStatus, error)
- 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) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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 (m *Master) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- func (c *Master) Exists() bool
- func (m *Master) Fetch(ctx context.Context) error
- func (m *Master) GetCypressPatch() ypatch.PatchSet
- func (m *Master) GetCypressPath() ypath.Path
- func (c *Master) GetImageHeaterTarget() *ImageHeaterTarget
- func (m *Master) IsPrimary() bool
- func (m *Master) IsUnregistered() bool
- func (c *Master) NeedSync() bool
- func (m *Master) NeedUpdate() ComponentStatus
- func (m *Master) ServerSync(ctx context.Context, dry bool) (ComponentStatus, error)
- func (m *Master) SetUnregistered(unregistered bool)
- func (m *Master) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- type MasterCache
- func (c *MasterCache) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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 Medium
- type OffshoreDataGateway
- func (c *OffshoreDataGateway) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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 TextGeneratorFunc
- type Timbertruck
- func (c *Timbertruck) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- func (tt *Timbertruck) Exists() bool
- func (tt *Timbertruck) Fetch(ctx context.Context) error
- func (tt *Timbertruck) GetDeliveryLoggers() []ComponentLoggers
- func (tt *Timbertruck) NeedSync() bool
- func (tt *Timbertruck) NeedUpdate() ComponentStatus
- func (tt *Timbertruck) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- type UI
- func (c *UI) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- func (u *UI) Exists() bool
- func (u *UI) Fetch(ctx context.Context) error
- func (c *UI) GetImageHeaterTarget() *ImageHeaterTarget
- func (c *UI) NeedSync() bool
- func (c *UI) NeedUpdate() ComponentStatus
- func (u *UI) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- type YqlAgent
- func (c *YqlAgent) ArePodsReady(ctx context.Context) (ComponentStatus, error)
- 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 (c *YtsaurusClient) ArePodsReady(ctx context.Context) (ComponentStatus, 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) 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 (yc *YtsaurusClient) GetCypressPatch() ypatch.PatchSet
- func (yc *YtsaurusClient) GetTabletCells(ctx context.Context) ([]ytv1.TabletCellBundleInfo, error)
- func (yc *YtsaurusClient) GetYtClient() yt.Client
- func (yc *YtsaurusClient) IsBundleControllerDisabled(ctx context.Context) (*bool, error)
- 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) ReportCondition(conditionType string, ok bool, msg string, err error) error
- func (yc *YtsaurusClient) SetBundleControllerDisabled(ctx context.Context, disabled *bool) error
- func (yc *YtsaurusClient) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
- func (yc *YtsaurusClient) SyncCypressPatch(ctx context.Context) error
- func (yc *YtsaurusClient) UpdateClusterHealthChecks(ctx context.Context) (err error)
- func (yc *YtsaurusClient) UpdateCounterHealthCheck(ctx context.Context, counterPath ypath.Path, conditionType string) error
- func (yc *YtsaurusClient) UpdateMasterQuorumCheck(ctx context.Context) error
- func (yc *YtsaurusClient) UpdateTabletCellBundlesHealthCheck(ctx context.Context) error
Constants ¶
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 CheckPathPermission ¶ added in v0.32.0
func CreateTabletCells ¶
func CreateUser ¶
func FindVolumeMountForPath ¶ added in v0.34.0
func FindVolumeMountForPath(volumeMounts []corev1.VolumeMount, path string) *corev1.VolumeMount
FindVolumeMountForPath returns the volume mount that path resides in. Mounts are scanned backward: the kubelet applies mounts in order, so the last mount covering a path is the one visible in the container.
func IsInstanceCountEqualYTSpec ¶
func IsInstanceCountEqualYTSpec(ctx context.Context, ytClient yt.Client, componentType consts.ComponentType, expectedCount int32) 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 TimbertruckDeliveryEnabled ¶ added in v0.34.0
func TimbertruckDeliveryEnabled(spec *ytv1.YtsaurusSpec) bool
TimbertruckDeliveryEnabled reports whether any server component in the cluster has timbertruck log delivery enabled. It mirrors the per-component resolution used by serverImpl, so the virtual Timbertruck component (user/queue/export setup) and its update-flow step are created exactly when at least one component will run a timbertruck sidecar.
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) ArePodsReady ¶ added in v0.32.0
func (c *BundleController) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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
// ArePodsReady returns:
// - SyncStatusBlocked when component have not enough running pods, or too many pods
// - SyncStatusStarted when component have enough running pods, but not enough ready pods
// - SyncStatusReady when component have enough ready pods
ArePodsReady(ctx context.Context) (ComponentStatus, error)
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 ComponentStatusStarted ¶ added in v0.32.0
func ComponentStatusStarted(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
const ( ConfigFormatText ConfigFormat = "text" ConfigFormatYson ConfigFormat = "yson" ConfigFormatJson ConfigFormat = "json" ConfigFormatJsonWithJsPrologue ConfigFormat = "json_with_js_prologue" ConfigFormatToml ConfigFormat = "toml" ConfigFormatYaml ConfigFormat = "yaml" )
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
}
func TextConfigGenerator ¶ added in v0.35.0
func TextConfigGenerator(fileName string, generator TextGeneratorFunc) ConfigGenerator
func YsonConfigGenerator ¶ added in v0.35.0
func YsonConfigGenerator(fileName string, generator ConfigGeneratorFunc) ConfigGenerator
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
type ControllerAgent ¶
type ControllerAgent struct {
// contains filtered or unexported fields
}
func NewControllerAgent ¶
func (*ControllerAgent) ArePodsReady ¶ added in v0.32.0
func (c *ControllerAgent) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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) ArePodsReady ¶ added in v0.32.0
func (c *CypressProxy) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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) ArePodsReady ¶ added in v0.32.0
func (c *DataNode) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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) ArePodsReady ¶ added in v0.32.0
func (c *Discovery) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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) ArePodsReady ¶ added in v0.32.0
func (c *HttpProxy) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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) ArePodsReady ¶ added in v0.32.0
func (c *ImageHeater) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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) GetHeaterStatus ¶ added in v0.31.0
func (ih *ImageHeater) GetHeaterStatus(component ytv1.Component) ComponentStatus
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) 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.
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 string, commonSpec *ytv1.CommonSpec, commonPodSpec *ytv1.PodSpec, instanceSpec *ytv1.InstanceSpec, generators ...ConfigGenerator, ) *InitJob
func NewInitJobForYtsaurus ¶
func NewInitJobForYtsaurus( labeller *labeller.Labeller, ytsaurus *apiproxy.Ytsaurus, name string, instanceSpec *ytv1.InstanceSpec, generators ...ConfigGenerator, ) *InitJob
func (*InitJob) AddInitJobScript ¶ added in v0.35.0
TODO: Migrate to AddScript.
func (*InitJob) AddScript ¶ added in v0.35.0
func (j *InitJob) AddScript(fileName string, generator TextGeneratorFunc)
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 ¶
IsCompleted returns true if job spec and config exist and job status condition is "True". NOTE: Not checking job success to allow manual setting condition for failing jobs. NOTE: Removing either job spec, config or condition triggers job restart.
func (*InitJob) IsUpdatingResources ¶ added in v0.31.0
func (c *InitJob) IsUpdatingResources() bool
func (*InitJob) RunScript ¶ added in v0.32.0
func (j *InitJob) RunScript( ctx context.Context, dry bool, reason string, scriptFileName string, complete func(status *ComponentStatus), ) (ComponentStatus, error)
func (*InitJob) RunUpdateScript ¶ added in v0.32.0
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) ArePodsReady ¶ added in v0.32.0
func (c *KafkaProxy) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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) ArePodsReady ¶ added in v0.32.0
func (m *Master) ArePodsReady(ctx context.Context) (ComponentStatus, error)
func (*Master) GetCypressPatch ¶
func (*Master) GetCypressPath ¶ added in v0.32.0
func (*Master) GetImageHeaterTarget ¶ added in v0.31.0
func (c *Master) GetImageHeaterTarget() *ImageHeaterTarget
func (*Master) IsUnregistered ¶ added in v0.35.0
func (*Master) NeedUpdate ¶ added in v0.31.0
func (m *Master) NeedUpdate() ComponentStatus
func (*Master) ServerSync ¶ added in v0.35.0
func (*Master) SetUnregistered ¶ added in v0.35.0
type MasterCache ¶
type MasterCache struct {
// contains filtered or unexported fields
}
func NewMasterCache ¶
func (*MasterCache) ArePodsReady ¶ added in v0.32.0
func (c *MasterCache) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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 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) ArePodsReady ¶ added in v0.32.0
func (c *OffshoreDataGateway) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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 ¶
func WithTimbertruck ¶ added in v0.34.0
func WithTimbertruck(timbertruck *ytv1.TimbertruckSpec) Option
WithTimbertruck sets a per-component override of the cluster-wide timbertruck settings.
type QueryTracker ¶
type QueryTracker struct {
// contains filtered or unexported fields
}
func NewQueryTracker ¶
func (*QueryTracker) ArePodsReady ¶ added in v0.32.0
func (c *QueryTracker) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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) ArePodsReady ¶ added in v0.32.0
func (c *QueueAgent) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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) ArePodsReady ¶ added in v0.32.0
func (c *RemoteDataNode) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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) ArePodsReady ¶ added in v0.32.0
func (c *RemoteTabletNode) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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) ArePodsReady ¶ added in v0.32.0
func (c *RpcProxy) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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) ArePodsReady ¶ added in v0.32.0
func (c *Scheduler) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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) ArePodsReady ¶ added in v0.32.0
func (c *StrawberryController) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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 SyncStatusStarted SyncStatus = "Started" // Reconciliation is complete, is not ready yet SyncStatusBlocked SyncStatus = "Blocked" // Reconciliation is impossible SyncStatusPending SyncStatus = "Pending" // Reconciliation is possible SyncStatusNeedUpdate SyncStatus = "NeedUpdate" // Running, update is required // FIXME: Remove, replace with pending. 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) ArePodsReady ¶ added in v0.32.0
func (c *TabletBalancer) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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, master Component, spec ytv1.TabletNodesSpec, doInitiailization bool, ) *TabletNode
func (*TabletNode) ArePodsReady ¶ added in v0.32.0
func (c *TabletNode) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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) ArePodsReady ¶ added in v0.32.0
func (c *TcpProxy) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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 TextGeneratorFunc ¶ added in v0.32.0
func CheckAndAppendPathACLGenerator ¶ added in v0.32.0
func CheckAndAppendPathACLGenerator(path string, acl yt.ACE) TextGeneratorFunc
func JoinTextGenerators ¶ added in v0.32.0
func JoinTextGenerators(generators ...TextGeneratorFunc) TextGeneratorFunc
func PlainTextGenerator ¶ added in v0.32.0
func PlainTextGenerator(text ...string) TextGeneratorFunc
func SprintfYsonGenerator ¶ added in v0.32.0
func SprintfYsonGenerator(format string, args ...any) TextGeneratorFunc
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) ArePodsReady ¶ added in v0.32.0
func (c *Timbertruck) ArePodsReady(ctx context.Context) (ComponentStatus, error)
func (*Timbertruck) Exists ¶ added in v0.31.0
func (tt *Timbertruck) Exists() bool
func (*Timbertruck) GetDeliveryLoggers ¶
func (tt *Timbertruck) GetDeliveryLoggers() []ComponentLoggers
GetDeliveryLoggers enumerates every component that has timbertruck delivery enabled, so the virtual Timbertruck component can prepare the YT-side user, queues, producers and exports. The component name and delivery path must match what serverImpl writes into each sidecar config.
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) Sync ¶
func (tt *Timbertruck) Sync(ctx context.Context, dry bool) (ComponentStatus, error)
type UI ¶
type UI struct {
// contains filtered or unexported fields
}
func (*UI) ArePodsReady ¶ added in v0.32.0
func (c *UI) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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) ArePodsReady ¶ added in v0.32.0
func (c *YqlAgent) ArePodsReady(ctx context.Context) (ComponentStatus, error)
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) ArePodsReady ¶ added in v0.32.0
func (c *YtsaurusClient) ArePodsReady(ctx context.Context) (ComponentStatus, error)
func (*YtsaurusClient) AreTabletCellsRemoved ¶
func (yc *YtsaurusClient) AreTabletCellsRemoved(ctx context.Context) (bool, error)
func (*YtsaurusClient) BuildCypressPatch ¶
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) GetCypressPatch ¶
func (yc *YtsaurusClient) GetCypressPatch() ypatch.PatchSet
func (*YtsaurusClient) GetTabletCells ¶
func (yc *YtsaurusClient) GetTabletCells(ctx context.Context) ([]ytv1.TabletCellBundleInfo, error)
func (*YtsaurusClient) GetYtClient ¶
func (yc *YtsaurusClient) GetYtClient() yt.Client
func (*YtsaurusClient) IsBundleControllerDisabled ¶ added in v0.31.0
func (yc *YtsaurusClient) IsBundleControllerDisabled(ctx context.Context) (*bool, error)
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) ReportCondition ¶ added in v0.32.0
func (*YtsaurusClient) SetBundleControllerDisabled ¶ added in v0.31.0
func (yc *YtsaurusClient) SetBundleControllerDisabled(ctx context.Context, disabled *bool) error
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) UpdateClusterHealthChecks ¶ added in v0.32.0
func (yc *YtsaurusClient) UpdateClusterHealthChecks(ctx context.Context) (err error)
func (*YtsaurusClient) UpdateCounterHealthCheck ¶ added in v0.32.0
func (*YtsaurusClient) UpdateMasterQuorumCheck ¶ added in v0.32.0
func (yc *YtsaurusClient) UpdateMasterQuorumCheck(ctx context.Context) error
func (*YtsaurusClient) UpdateTabletCellBundlesHealthCheck ¶ added in v0.32.0
func (yc *YtsaurusClient) UpdateTabletCellBundlesHealthCheck(ctx context.Context) error
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