Skip to content

Commit

Permalink
fix link to features
Browse files Browse the repository at this point in the history
Signed-off-by: Iceber Gu <[email protected]>
  • Loading branch information
Iceber committed Jun 6, 2022
1 parent cf27b39 commit 93f1eea
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions content/zh/docs/features/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Clusterpedia APIServer 和 Clusterpedia ClusterSynchro Manager 分别具有不
## APIServer
|作用|feature gate|默认值|
|---|--------|----|
|[设置默认返回剩余的资源数量](./remaining_item_count)|`RemainingItemCount`|false|
|[原生 SQL 查询](./allow_raw_sql_query)|`AllowRawSQLQuery`|false|
|[设置默认返回剩余的资源数量](./remaining-item-count)|`RemainingItemCount`|false|
|[原生 SQL 查询](./raw-sql-query)|`AllowRawSQLQuery`|false|

## ClusterSynchro Manager
|作用|feature gate|默认值|
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ spec:
**请谨慎使用该功能,该功能会创建大量的长连接,未来 Clusterpedia 添加 Agent 功能后,可以避免长连接的创建**
建议指定具体的资源类型,如果需要对自定义资源进行动态同步,可以使用 [同步所有的自定义资源](./sync_all_custom_resources)
建议指定具体的资源类型,如果需要对自定义资源进行动态同步,可以使用 [同步所有的自定义资源](../sync-all-custom-resources)
使用`全资源通配符` 需要在 `clustersynchro manager` 中开启 Feature Gate
|作用|feature gate|默认值|
|---|------------|-----|
|允许同步所有的自定义资源|`AllowSyncAllCustomResources`|true|
|允许同步所有的资源|`AllowSyncAllCustomResources`|true|
2 changes: 1 addition & 1 deletion content/zh/docs/usage/access-clusterpedia.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ kubectl get --raw="/apis/clusterpedia.io/v1beta1/resources/clusters/cluster-1/ve

Clusterpedia 提供了一个简单的脚本来帮助生成 `cluster kube config`
```bash
curl -sfL https://raw.githubusercontent.com/clusterpedia-io/clusterpedia/v0.2.0/hack/gen-clusterconfigs.sh | sh -
curl -sfL https://raw.githubusercontent.com/clusterpedia-io/clusterpedia/v0.3.0/hack/gen-clusterconfigs.sh | sh -
```
```
# 输出:
Expand Down
2 changes: 1 addition & 1 deletion content/zh/docs/usage/search/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,4 @@ Owner Group 的格式为 `resource.group`,例如 *deployments.apps* 或者 *no

自定义检索并不支持通过 search lable,只能使用 url query 来传递自定义搜素的语句。

另外该功能暂时还是处于 alpha 阶段,需要用户在 `clusterpedia apiserver` 中开启相应的 Feature Gate,详细可以参考 [自定义条件检索](../../features/raw_sql_query)
另外该功能暂时还是处于 alpha 阶段,需要用户在 `clusterpedia apiserver` 中开启相应的 Feature Gate,详细可以参考 [自定义条件检索](../../features/raw-sql-query)
4 changes: 2 additions & 2 deletions content/zh/docs/usage/sync-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ syncResources:
spec:
syncAllCustomResources: true
```
但是需要注意,使用该功能需要在 `clustersynchro-manager` 中开启相应的 Feature Gate,具体操作可以参考 [同步所有自定义资源](../../features/sync_all_custom_resources)
但是需要注意,使用该功能需要在 `clustersynchro-manager` 中开启相应的 Feature Gate,具体操作可以参考 [同步所有自定义资源](../../features/sync-all-custom-resources)

## 使用通配符来同步资源
### 使用通配符,收集指定组下的所有类型资源
Expand All @@ -171,7 +171,7 @@ spec:
```
通过`全资源通配符` 可以同步集群中的内置资源,自定义资源以及聚合式 API 资源。

使用该功能会创建大量的长连接,所以需要谨慎使用,并且在 `clustersynchro-manager` 中开启相应的 Feature Gate, 具体操作可以参考 [同步所有资源](../../features/sync_all_resources)
使用该功能会创建大量的长连接,所以需要谨慎使用,并且在 `clustersynchro-manager` 中开启相应的 Feature Gate, 具体操作可以参考 [同步所有资源](../../features/sync-all-resources)

## 查看资源同步状态
我们可以通过 `PediaCluster` 资源的 `Status` 来查看资源的信息,同步的资源版本和状态以及存储版本
Expand Down

0 comments on commit 93f1eea

Please sign in to comment.