規格結構定義
RestoreSpec 會定義資源的選取狀態。Restore
Restore:
metadata:
name: string
spec:
backup: string
pointInTime: string
sourceDBCluster: string
欄位 類型必要或選填 |
說明 |
|---|---|
backup
| |
string選填 |
要從中還原的 Backup 資源名稱。您必須指定 backup 或 pointInTime,但不能兩者同時指定。 |
pointInTime
| |
string選填 |
時間點復原的目標時間戳記。必須是過去的時間,且在可用的復原期間內。您必須指定 backup 或 pointInTime,但不能兩者同時指定。 |
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
restoredPointInTime: string
欄位 類型必要或選填 |
說明 |
|---|---|
completeTime
| |
string選填 | 還原作業的完成時間。 |
conditions[]
| |
array of objects選填 | 條件代表實體目前狀態的最新可用觀察結果。 |
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,指出條件上次轉換的原因。特定條件類型的產生者可能會為這個欄位定義預期值和意義。值必須是 CamelCase 字串。這個欄位可能不得為空。 |
conditions[].status
| |
string必填 |
條件的狀態。值可以是 True、False 或 Unknown。 |
conditions[].type
| |
string必填 |
駝峰式大小寫或 foo.example.com/CamelCase 格式的條件類型。
許多 .condition.type 值在資源之間保持一致,例如「可用」。 |
createTime
| |
string選填 | 還原作業的建立時間。 |
criticalIncidents[]
| |
array of objects必填 | CriticalIncidents 是所有未解決重大事件的平面清單。 |
criticalIncidents[].code
| |
string必填 |
Code 是這項特定錯誤的錯誤代碼。錯誤代碼是 DBSE+numeric 字串,例如 DBSE1012。 |
criticalIncidents[].createTime
| |
string必填 | CreateTime 是指在來源建立這個事件的時間戳記。 |
criticalIncidents[].message
| |
string選填 | 訊息會說明發生的事件或錯誤。 |
criticalIncidents[].messageTemplateParams
| |
object選填 | MessageTemplateParams 包含產生使用者介面中資料驅動型 Message 友善版本所需的鍵/值組合。 |
criticalIncidents[].resource
| |
object必填 | 資源包含回報事件的資料庫服務元件相關資訊,以及目標資源的相關資訊。 |
criticalIncidents[].resource.component
| |
string必填 | Component 是回報事件的資料庫服務子系統內部 ID。 |
criticalIncidents[].resource.location
| |
object選填 | 受影響資源的位置資訊。 |
criticalIncidents[].resource.location.cluster
| |
string選填 | 受影響資源的叢集名稱。 |
criticalIncidents[].resource.location.group
| |
string選填 | 資源的群組名稱。 |
criticalIncidents[].resource.location.kind
| |
string選填 | 資源的 Kind。 |
criticalIncidents[].resource.location.name
| |
string選填 | 受影響資源的名稱。 |
criticalIncidents[].resource.location.namespace
| |
string選填 | 受影響資源的命名空間。 |
criticalIncidents[].resource.location.version
| |
string選填 | 資源版本。 |
criticalIncidents[].stackTrace[]
| |
array of objects選填 | 堆疊追蹤中的非結構化訊息清單。 |
criticalIncidents[].stackTrace[].component
| |
string選填 | 記錄訊息的資料庫服務元件名稱。 |
criticalIncidents[].stackTrace[].message
| |
string選填 | 記錄訊息。 |
criticalIncidents[].transientUntil
| |
string選填 | 指出問題在指定時間前屬於暫時性問題。 |
observedGeneration
| |
integer選填 | 內部:控制器觀察到的世代。 |
phase
| |
string選填 | RestorePhase 是還原的階段。 |
reconciled
| |
boolean選填 | 內部:資源是否已由控制器調解。 |
restoredPointInTime
| |
string選填 |
實際時間點,還原作業會將目標 DBCluster 帶入該時間點。可能與 spec.pointInTime 中指定的值不同。 |