規格結構定義
RestoreSpec 會定義還原作業的所需狀態。
backup: string
clonedDBClusterConfig:
dbclusterName: string
pointInTime: string
sourceDBCluster: string
欄位 類型必填或選填 |
說明 |
|---|---|
backup
| |
string選填 | 要還原的備份。您必須指定備份或時間點。如果指定 Backup,則必須將 ClonedDBClusterConfig 欄位留空。如果指定 PointInTime,則必須在 ClonedDBClusterConfig 欄位中提供新的 DBCluster 名稱。否則,系統會拒絕還原要求。 |
clonedDBClusterConfig
| |
object選填 | 複製的 DBCluster 設定。您可以藉此指定複製的 DBCluster 名稱。如未指定,預設會還原來源 DBCluster。 |
clonedDBClusterConfig.dbclusterName
| |
string選填 | 複製 DBCluster 的名稱。 |
pointInTime
| |
string選填 | 要還原至過去的哪個時間點。如未指定,預設會還原至最新的可用時間點。 |
sourceDBCluster
| |
string必填 | 要還原的來源 DBCluster 名稱。 |
狀態結構定義
RestoreStatus 會定義觀察到的 Restore 狀態。
completeTime: string
conditions:
- lastTransitionTime: string
message: string
observedGeneration: integer
reason: string
status: string
type: string
createTime: string
criticalIncidents:
- code: string
createTime: string
message: string
messageTemplateParams: object
resource:
component: string
location:
cluster: string
group: string
kind: string
name: string
namespace: string
version: string
stackTrace:
- component: string
message: string
transientUntil: string
observedGeneration: integer
phase: string
reconciled: boolean
欄位 類型必填或選填 |
說明 |
|---|---|
completeTime
| |
string選填 | 還原作業的完成時間。 |
conditions[]
| |
object選填 | 條件代表實體目前狀態的最新可用觀測值。 |
conditions[].lastTransitionTime
| |
string必填 | lastTransitionTime 是條件上次從某個狀態轉換為另一個狀態的時間,這會在基礎條件變更時發生。如果基礎條件變更的時間不明,請使用 API 欄位變更的時間。 |
conditions[].message
| |
string必填 | message 是使用者可讀的訊息,指出轉換的詳細資料。這個值可以是空白字串。 |
conditions[].observedGeneration
| |
integer選填 |
observedGeneration 代表設定條件時依據的 .metadata.generation。舉例來說,如果 .metadata.generation 為 12,但 .status.conditions[x].observedGeneration 為 9,則條件相對於例項的目前狀態已過時。 |
conditions[].reason
| |
string必填 | reason 包含程式輔助 ID,指出條件上次轉換的原因。特定條件類型的產生者可以定義這個欄位的預期值和意義,以及這些值是否視為保證 API。值必須是駝峰式大小寫字串。 這個欄位不得留空。 |
conditions[].status
| |
string必填 | 條件狀態,可為 True、False 或 Unknown。 |
conditions[].type
| |
string必填 |
駝峰式大小寫或 foo.example.com/CamelCase 中的條件類型。
許多 .condition.type 值在不同資源中都一致,例如「可用」。由於任意條件可能很有用 (例如 .node.status.conditions),因此解決衝突的能力相當重要。相符的規則運算式為 (dns1123SubdomainFmt/)?(qualifiedNameFmt)。 |
createTime
| |
string選填 | 還原作業的建立時間。 |
criticalIncidents[]
| |
object必填 | CriticalIncidents 是所有有效重大事件的平面清單。 |
criticalIncidents[].code
| |
string必填 |
Code 是這項特定錯誤的錯誤代碼。錯誤代碼是 DBSE+numeric 字串,例如 DBSE1012。 |
criticalIncidents[].createTime
| |
string必填 | CreateTime 是在來源建立這個事件的時間戳記。 |
criticalIncidents[].message
| |
string選填 | 訊息會說明發生的事件或錯誤。 |
criticalIncidents[].messageTemplateParams
| |
object選填 | MessageTemplateParams 包含必要鍵/值組合,可在使用者介面中產生容易使用的資料導向訊息版本。 |
criticalIncidents[].resource
| |
object必填 | 資源包含回報事件的資料庫服務元件相關資訊,以及 Kubernetes 資源的相關資訊。 |
criticalIncidents[].resource.component
| |
string必填 | 元件是回報事件的資料庫服務子系統內部 ID。 |
criticalIncidents[].resource.location
| |
object選填 | 位置。 |
criticalIncidents[].resource.location.cluster
| |
string選填 | 受影響 Kubernetes 資源的叢集名稱。 |
criticalIncidents[].resource.location.group
| |
string選填 | Kubernetes 資源的群組名稱。 |
criticalIncidents[].resource.location.kind
| |
string選填 | Kubernetes 資源的種類。 |
criticalIncidents[].resource.location.name
| |
string選填 | 受影響 Kubernetes 資源的名稱。 |
criticalIncidents[].resource.location.namespace
| |
string選填 | 受影響 Kubernetes 資源的命名空間。 |
criticalIncidents[].resource.location.version
| |
string選填 | Kubernetes 資源的版本。 |
criticalIncidents[].stackTrace[]
| |
object選填 | 堆疊追蹤記錄中的非結構化訊息清單。 |
criticalIncidents[].stackTrace.component
| |
string選填 | 記錄訊息的資料庫服務元件名稱。 |
criticalIncidents[].stackTrace.message
| |
string選填 | 記錄訊息。 |
criticalIncidents[].transientUntil
| |
string選填 | 表示在指定時間之前,問題都視為暫時性。 |
observedGeneration
| |
integer選填 | 內部:控制器觀察到的世代。 |
phase
| |
string選填 | RestorePhase 是還原作業的階段。 |
reconciled
| |
boolean選填 | 內部:資源是否已由控制器協調。 |