From 9089d06689f30541e34459f4710c45c8885b1351 Mon Sep 17 00:00:00 2001 From: yuanyuan zhang Date: Tue, 7 Jan 2025 17:08:59 +0800 Subject: [PATCH] docs: fix componentDef bugs --- docs/user_docs/observability/monitor-database.md | 3 ++- i18n/zh-cn/user-docs/observability/monitor-database.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/user_docs/observability/monitor-database.md b/docs/user_docs/observability/monitor-database.md index 70595351a72..df700f72d6b 100644 --- a/docs/user_docs/observability/monitor-database.md +++ b/docs/user_docs/observability/monitor-database.md @@ -124,6 +124,7 @@ spec: topology: replication componentSpecs: - name: postgresql + componentDef: postgresql serviceVersion: "14.7.2" disableExporter: false labels: @@ -199,7 +200,7 @@ Edit the value of `disableExporter`. ... componentSpecs: - name: mysql - componentDefRef: mysql + componentDef: mysql disableExporter: true # Set to `false` to enable exporter ... ``` diff --git a/i18n/zh-cn/user-docs/observability/monitor-database.md b/i18n/zh-cn/user-docs/observability/monitor-database.md index 50ddb6d11bf..074bf5fd865 100644 --- a/i18n/zh-cn/user-docs/observability/monitor-database.md +++ b/i18n/zh-cn/user-docs/observability/monitor-database.md @@ -124,6 +124,7 @@ spec: topology: replication componentSpecs: - name: postgresql + componentDef: postgresql serviceVersion: "14.7.2" disableExporter: false labels: @@ -203,7 +204,7 @@ kubectl edit cluster mycluster -n demo ... componentSpecs: - name: mysql - componentDefRef: mysql + componentDef: mysql disableExporter: true # 将参数值设为 `false`,开启 exporter ```