Spec schema
SwitchoverSpec defines the selected state of Switchover.
dbclusterRef: string
newPrimary: string
| Field Type Required or optional |
Description |
|---|---|
dbclusterRef
| |
stringRequired |
The dbclusterRef is the name of the DBCluster that initiates a switchover. Create the Switchover object in the same namespace as its referenced DBCluster.
|
newPrimary
| |
stringOptional |
newPrimary is the standby instance that becomes the new primary.
|
Status schema
SwitchoverStatus defines the observed state of Switchover.
conditions:
- lastTransitionTime: string
message: string
observedGeneration: integer
reason: string
status: string
type: string
createTime: string
criticalIncidents:
- code: string
createTime: string
message: string
messageTemplateParams:
resource:
component: string
location:
cluster: string
group: string
kind: string
name: string
namespace: string
version: string
stackTrace:
- component: string
message: string
transientUntil: string
endTime: string
observedGeneration: integer
reconciled: boolean
startTime: string
state: string
Field TypeRequired or optional |
Description |
|---|---|
conditions
| |
list (object)Optional | Shows the latest available observations of the Switchover's current state. |
conditions[]
| |
objectOptional | Condition describes one aspect of the current state of this API Resource. |
conditions[].lastTransitionTime
| |
stringRequired | Indicates when the condition transitioned from one status to another. If this time is unknown, use the time the API field changed. |
conditions[].message
| |
stringRequired | A human-readable string that describes details about the transition. This string can be empty. |
conditions[].observedGeneration
| |
integerOptional |
Represents the .metadata.generation that the condition uses. For example, if .metadata.generation is 12, but the .status.conditions[x].observedGeneration is 9, the condition is outdated compared to the instance's current state.
|
conditions[].reason
| |
stringRequired | Contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types can define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value must be a CamelCase string and cannot be empty. |
conditions[].status
| |
stringRequired |
Status of the condition. The valid values are True, False, and Unknown.
|
conditions[].type
| |
stringRequired |
Type of condition in CamelCase or in foo.example.com/CamelCase.
|
createTime
| |
stringOptional | Time when the internal switchover workflow creates the resource. |
criticalIncidents
| |
list (object)Optional | List of all active critical incidents. |
criticalIncidents[]
| |
objectOptional | Describes an ongoing critical incident. |
criticalIncidents[].code
| |
stringRequired |
Error code of the error. Error codes are DBSE+numeric strings; for example, DBSE1012.
|
criticalIncidents[].createTime
| |
stringRequired | Timestamp when the incident's origin created it. |
criticalIncidents[].message
| |
stringOptional | Describes the incident or error that occurred. |
criticalIncidents[].messageTemplateParams
| |
objectOptional | Includes key-value pairs to generate a user-friendly, data-driven message in the UI. |
criticalIncidents[].resource
| |
objectRequired | Describes the Database Service component that reported the incident as well as contains information about Cluster Manager. |
criticalIncidents[].resource.component
| |
stringRequired | The component is an internal identifier of the Database Service subsystem that reported the incident. |
criticalIncidents[].resource.location
| |
objectOptional | The location of the resource. |
criticalIncidents[].resource.location.cluster
| |
stringOptional | Name of the cluster of the affected Cluster Manager resource. |
criticalIncidents[].resource.location.group
| |
stringOptional | Group name of the Cluster Manager resource. |
criticalIncidents[].resource.location.kind
| |
stringOptional | Type of the Cluster Manager resource. |
criticalIncidents[].resource.location.name
| |
stringOptional | Name of the affected Cluster Manager resource. |
criticalIncidents[].resource.location.namespace
| |
stringOptional | Namespace of the affected Cluster Manager resource. |
criticalIncidents[].resource.location.version
| |
TYPEOptional | Version of the Cluster Manager resource. |
criticalIncidents[].stackTrace
| |
list (object)Optional | Includes an unstructured list of messages from the stack trace. |
criticalIncidents[].stackTrace[]
| |
objectOptional | Describes stack trace information for the incident. |
criticalIncidents[].stackTrace[].component
| |
stringOptional | The component is the name of a Database Service component that logged the message. |
criticalIncidents[].stackTrace[].message
| |
stringOptional | The logged message. |
criticalIncidents[].stackTrace[].transientUntil
| |
stringOptional | The timestamp until which the system considers the incident to be transient. |
endTime
| |
stringOptional | Time when the switchover reached its final state. |
observedGeneration
| |
integerOptional | The generation the controller observes. |
reconciled
| |
booleanOptional | Whether the controller reconciled the resource. |
startTime
| |
stringOptional | The time when the switchover operation started. |
state
| |
stringOptional |
Describes the switchover operation's current status. Valid values are InProgress, Success, Failed_RollbackInProgress, Failed_RollbackSuccess, and Failed_RollbackFailed. InProgress indicates the switchover is still active. Success indicates the switchover completed. Failed_RollbackInProgress indicates the operator cannot promote the new primary instance and attempts to restart the old primary instance. Failed_RollbackSuccess indicates the operator cannot promote the new primary instance and successfully restarts the old primary instance. Failed_RollbackFailed indicates the operator cannot promote the new primary instance and cannot restart the old primary instance. Manual repair of the DBCluster might be necessary.
|