Spec schema
SwitchoverSpec defines the selected state of Switchover.
dbclusterRef
:
string
newPrimary
:
string
newPrimaryInstance
:
string
primaryHost
:
string
Field
TypeRequired or optional
dbclusterRef
string
Optional
Switchover
object must be created in the same namespace as
the DBCluster that it references. This field is required for Switchover.newPrimary
string
Optional
newPrimaryInstance
string
Optional
primaryHost
string
Optional
Status schema
SwitchoverStatus defines the observed state of Switchover.
conditions
:
-
lastTransitionTime
:
string
message
:
string
observedGeneration
:
integer
reason
:
string
status
:
string
type
:
string
createTime
:
string
critcalIncidents
:
-
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
internal
:
newPrimary
:
string
oldPrimary
:
string
phase
:
string
observedGeneration
:
integer
reconciled
:
boolean
startTime
:
string
state
:
string
Field
TypeRequired or optional
conditions
list (object)
Optional
conditions[]
object
Optional
conditions[].lastTransactionTime
string
Required
string
Required
conditions[].observedGeneration
integer
Optional
conditions[].reason
string
Required
conditions[].status
string
Required
Valid values: "True"
, "False"
, Unknown
conditions[].type
string
Required
createTime
string
Optional
criticalIncidents
list (object)
Optional
criticalIncidents[]
object
Optional
criticalIncidents[].code
string
Required
criticalIncidents[].createTime
string
Required
string
Optional
object
Optional
criticalIncidents[].resource
object
Required
criticalIncidents[].resource.component
string
Required
criticalIncidents[].resource.location
object
Optional
criticalIncidents[].resource.location.cluster
string
Optional
criticalIncidents[].resource.location.group
string
Optional
criticalIncidents[].resource.location.kind
string
Optional
criticalIncidents[].resource.location.name
string
Optional
criticalIncidents[].resource.location.namespace
string
Optional
criticalIncidents[].resource.location.version
TYPE
Optional
criticalIncidents[].stackTrace
list (object)
Optional
criticalIncidents[].stackTrace[]
object
Optional
criticalIncidents[].stackTrace[].component
string
Optional
string
Optional
string
Optional
endTime
string
Optional
internal
object
Optional
internal.newPrimary
string
Required
internal.oldPrimary
string
Required
internal.phase
string
Optional
Valid values: UpdateDbcluster
, StopPrimary
, PromoteStandby
, ValidateNewPrimary
, UpdateOldPrimaryResources
, UpdateNewPrimaryResources
, UpdateOldPrimaryConfigs
, Complete
, SyncOldPrimary
, StartOldPrimary
, PreSuccess
, RepointStandbys
, RollbackPrimary
, RollbackStandbys
observedGeneration
integer
Optional
reconciled
boolean
Optional
startTime
string
Optional
state
string
Optional
Valid values: InProgress
, Success
, Failed_RollbackInProgress
, Failed_RollbackSuccess
, Failed_RollbackFailed
InProgress
, Success
, Failed_RollbackInProgress
, Failed_RollbackSuccess
, Failed_RollbackFailed
InProgress
means
the switchover is still in progress. Success
means that the switchover
has completed. Failed_RollbackInProgress
means that the operator
was unable to promote the new primary instance, and is attempting
to restart the old primary instance. Failed_RollbackSuccess
means
that the operator was unable to promote the new primary instance,
and successfully restarted the old primary instance. Failed_RollbackFailed
means that the operator was unable to promote the new primary instance,
and were not able to restart the old primary instance. The DBCluster
might need to be manually repaired.