checks

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCondition

func MakeCondition(
	conditionType string,
	ok bool,
	msg string,
	err error,
) metav1.Condition

func MasterQuorumHealth

func MasterQuorumHealth(
	ctx context.Context,
	ytClient yt.Client,
	mastersPath ypath.Path,
	totalCount int32,
	requiredCount int32,
) (ok bool, message string, err error)

func MergeConditions

func MergeConditions(
	output metav1.Condition,
	getter func(conditionType string) *metav1.Condition,
	inputs ...string,
) metav1.Condition

Types

type MasterAddressWithAttributes

type MasterAddressWithAttributes struct {
	Address     string `yson:",value"`
	Maintenance bool   `yson:"maintenance,attr"`
}

type MasterHydra

type MasterHydra struct {
	State                MasterState `yson:"state"`
	SelfID               int32       `yson:"self_id"`
	LeaderID             int32       `yson:"leader_id"`
	Voting               bool        `yson:"voting"`
	Active               bool        `yson:"active"`
	ActiveLeader         bool        `yson:"active_leader"`
	ActiveFollower       bool        `yson:"active_follower"`
	BuildingSnapshot     bool        `yson:"building_snapshot"`
	EnteringReadOnlyMode bool        `yson:"entering_read_only_mode"`
	LastSnapshotReadOnly bool        `yson:"last_snapshot_read_only"`
	ReadOnly             bool        `yson:"read_only"`
}

See: https://github.com/ytsaurus/ytsaurus/blob/main/yt/yt/server/lib/hydra/distributed_hydra_manager.cpp

type MasterState

type MasterState string

NYT::NHydra::EPeerState

const (
	MasterStateLeading   MasterState = "leading"
	MasterStateFollowing MasterState = "following"
)

Jump to

Keyboard shortcuts

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