Documentation
¶
Index ¶
- Constants
- Variables
- func MakeDatacenterConditionFunc(conditionType string) func(dcName string) string
- func MakeKindControllerCondition(kind, conditionType string) string
- func MakeKindFinalizerCondition(kind, conditionType string) string
- type DatacenterUpgradeContext
- type NodeStatusReport
- type SidecarRuntimeConfig
- type UpgradePhase
Constants ¶
View Source
const ( NodeAvailableConditionFormat = "Node%sAvailable" NodeProgressingConditionFormat = "Node%sProgressing" NodeDegradedConditionFormat = "Node%sDegraded" NodeSetupAvailableConditionFormat = "NodeSetup%sAvailable" NodeSetupProgressingConditionFormat = "NodeSetup%sProgressing" NodeSetupDegradedConditionFormat = "NodeSetup%sDegraded" NodeTuneAvailableConditionFormat = "NodeTune%sAvailable" NodeTuneProgressingConditionFormat = "NodeTune%sProgressing" NodeTuneDegradedConditionFormat = "NodeTune%sDegraded" AsExpectedReason = "AsExpected" ErrorReason = "Error" ProgressingReason = "Progressing" AwaitingConditionReason = "AwaitingCondition" )
Variables ¶
View Source
var ( MakeDatacenterAvailableCondition = MakeDatacenterConditionFunc(scyllav1alpha1.AvailableCondition) MakeDatacenterProgressingCondition = MakeDatacenterConditionFunc(scyllav1alpha1.ProgressingCondition) MakeDatacenterDegradedCondition = MakeDatacenterConditionFunc(scyllav1alpha1.DegradedCondition) )
Functions ¶
func MakeDatacenterConditionFunc ¶ added in v1.17.0
MakeDatacenterConditionFunc returns a function that creates a datacenter condition using the provided condition type.
func MakeKindControllerCondition ¶ added in v1.17.0
func MakeKindFinalizerCondition ¶ added in v1.17.0
Types ¶
type DatacenterUpgradeContext ¶ added in v1.15.0
type DatacenterUpgradeContext struct {
State UpgradePhase `json:"state"`
FromVersion string `json:"fromVersion"`
ToVersion string `json:"toVersion"`
SystemSnapshotTag string `json:"systemSnapshotTag"`
DataSnapshotTag string `json:"dataSnapshotTag"`
}
func (*DatacenterUpgradeContext) Decode ¶ added in v1.15.0
func (uc *DatacenterUpgradeContext) Decode(reader io.Reader) error
func (*DatacenterUpgradeContext) Encode ¶ added in v1.15.0
func (uc *DatacenterUpgradeContext) Encode() ([]byte, error)
type NodeStatusReport ¶ added in v1.19.0
type NodeStatusReport struct {
// ObservedNodes holds the list of node statuses as observed by this node.
ObservedNodes []scyllav1alpha1.ObservedNodeStatus `json:"observedNodes,omitempty"`
// Error holds an error message if the report could not be built.
Error *string `json:"error,omitempty"`
}
func (*NodeStatusReport) Decode ¶ added in v1.19.0
func (nsr *NodeStatusReport) Decode(reader io.Reader) error
func (*NodeStatusReport) Encode ¶ added in v1.19.0
func (nsr *NodeStatusReport) Encode() ([]byte, error)
type SidecarRuntimeConfig ¶
type SidecarRuntimeConfig struct {
// containerID hold the ID of the scylla container this information is valid for.
// E.g. on restarts, the container gets a new ID.
ContainerID string `json:"containerID"`
// matchingNodeConfigs is a list of NodeConfigs that affect this pod.
MatchingNodeConfigs []string `json:"matchingNodeConfigs"`
// blockingNodeConfigs is a list of NodeConfigs this pod is waiting on.
BlockingNodeConfigs []string `json:"blockingNodeConfigs"`
}
type UpgradePhase ¶ added in v1.15.0
type UpgradePhase string
const ( PreHooksUpgradePhase UpgradePhase = "PreHooks" RolloutInitUpgradePhase UpgradePhase = "RolloutInit" RolloutRunUpgradePhase UpgradePhase = "RolloutRun" PostHooksUpgradePhase UpgradePhase = "PostHooks" )
Click to show internal directories.
Click to hide internal directories.