規格結構定義
ImageCatalogSpec 會定義 ImageCatalog 的所需狀態。
controlPlaneAgents:
- imageDigests:
backupinit: string
dbinit: string
logrotate: string
monitoring-agent: string
version: string
dataPlane:
- imageDigests:
database: string
osType: string
version: string
欄位 類型必填或選填 |
說明 |
|---|---|
controlPlaneAgents
| |
list (object)必填 | ControlPlaneAgentsRelease 會定義特定 CPA 版本的映像檔摘要。 |
controlPlaneAgents[].imageDigests
| |
object必填 | ControlPlaneAgentsDigestSet 包含 CPA 容器映像檔的 SHA 摘要。 |
controlPlaneAgents[].imageDigests.backupinit
| |
string選填 | 特定版本備份初始化元件的 SHA-256 映像檔摘要。 |
controlPlaneAgents[].imageDigests.dbinit
| |
string選填 | 特定版本 dbinit 元件的 SHA-256 圖片摘要。 |
controlPlaneAgents[].imageDigests.logrotate
| |
string選填 | 特定版本 logrotate 元件的 SHA-256 映像檔摘要。 |
controlPlaneAgents[].imageDigests.monitoring-agent
| |
string選填 | 特定版本監控代理程式元件的 SHA-256 映像檔摘要。 |
controlPlaneAgents[].version
| |
string必填 | 這組映像檔摘要的控制層代理程式版本。例如「1.7.0」。 |
dataPlane
| |
list (object)必填 | DataPlaneRelease 會定義特定資料庫版本的映像檔摘要。 |
dataPlane[].imageDigests
| |
object必填 | DataPlaneDigestSet 包含資料平面容器映像檔的 SHA 摘要。 |
dataPlane[].imageDigests.database
| |
string選填 | 特定版本資料庫元件的 SHA-256 映像檔摘要。 |
dataPlane[].osType
| |
string選填 | 資料庫映像檔的基礎作業系統類型。可接受的值為 `Debian` 和 `UBI9`。 |
dataPlane[].version
| |
string必填 | 這組圖片摘要的資料庫版本。例如「16.11.0」。 |
狀態結構定義
ImageCatalogStatus 定義 ImageCatalog 的觀察狀態。
conditions:
- lastTransitionTime: string
message: string
observedGeneration: integer
reason: string
status: string
type: 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
reconciled: boolean
欄位 類型必填或選填 |
說明 |
|---|---|
conditions
| |
list (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。值應為 CamelCase 字串。這個欄位不得空白。 |
conditions[].status
| |
string必填 | 條件狀態,可以是 True、False 或 Unknown。 |
conditions[].type
| |
string必填 | 條件類型,採用駝峰式大小寫格式,或 foo.example.com/CamelCase。許多 .condition.type 值在 Available 等資源中是一致的,但由於任意條件可能很有用 (請參閱 .node.status.conditions),因此解除衝突的能力非常重要。相符的規則運算式為 (dns1123SubdomainFmt/)?(qualifiedNameFmt)。 |
criticalIncidents
| |
list (object)選填 | CriticalIncidents 是所有未解決重大事件的平面清單。 |
criticalIncidents[].code
| |
string必填 | 這個特定錯誤的錯誤代碼。錯誤代碼為 DBSE+數字字串,例如「DBSE1012」。 |
criticalIncidents[].createTime
| |
string必填 | 這個事件在來源建立時的時間戳記。 |
criticalIncidents[].message
| |
string選填 | 訊息會說明發生的事件/錯誤。 |
criticalIncidents[].messageTemplateParams
| |
object選填 | 包含在使用者介面中產生易於使用的資料驅動型訊息版本時,所需的鍵/值組合。 |
criticalIncidents[].resource
| |
object必填 | 包含回報事件的資料庫服務元件,以及 K8s 資源的相關資訊。 |
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
| |
list (object)選填 | 堆疊追蹤中的非結構化訊息清單。 |
criticalIncidents[].stackTrace[].component
| |
string選填 | 記錄訊息的資料庫服務元件名稱。 |
criticalIncidents[].stackTrace[].message
| |
string選填 | 記錄的訊息。 |
criticalIncidents[].transientUntil
| |
string選填 | 如果採用這項設定,代表問題應視為暫時性問題,直到指定時間為止。 |
observedGeneration
| |
integer選填 | 內部:控制器觀察到的世代。 |
reconciled
| |
boolean選填 | 內部:資源是否已由控制器調解。 |