Skip to content

Commit 2d895c8

Browse files
authored
fix: found issues reported by new lint rules (#599)
1 parent f83fb4a commit 2d895c8

63 files changed

Lines changed: 1366 additions & 1649 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/en/apis/advanced_apis/event/search.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@ i18n:
77

88
# Search
99

10-
<OpenAPIPath path="/platform/events.alauda.io/v1/events"/>
11-
<OpenAPIPath path="/platform/events.alauda.io/v1/projects/{project}/clusters/{cluster}/namespaces/{namespace}/events"/>
10+
<OpenAPIPath
11+
path={[
12+
'/platform/events.alauda.io/v1/events',
13+
'/platform/events.alauda.io/v1/projects/{project}/clusters/{cluster}/namespaces/{namespace}/events',
14+
]}
15+
/>

docs/en/apis/advanced_apis/log/aggregation.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ i18n:
77

88
# Aggregation
99

10-
<OpenAPIPath path="/platform/logging.alauda.io/v2/logs/aggregation"/>
11-
<OpenAPIPath path="/platform/logging.alauda.io/v2/clusters/{cluster}/logs/aggregation"/>
12-
<OpenAPIPath path="/platform/logging.alauda.io/v2/projects/{project}/clusters/{cluster}/namespaces/{namespace}/logs/aggregation"/>
10+
<OpenAPIPath
11+
path={[
12+
'/platform/logging.alauda.io/v2/logs/aggregation',
13+
'/platform/logging.alauda.io/v2/clusters/{cluster}/logs/aggregation',
14+
'/platform/logging.alauda.io/v2/projects/{project}/clusters/{cluster}/namespaces/{namespace}/logs/aggregation',
15+
]}
16+
/>

docs/en/apis/advanced_apis/log/archive.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ i18n:
77

88
# Archive
99

10-
<OpenAPIPath path="/platform/logging.alauda.io/v2/logs/archive"/>
11-
<OpenAPIPath path="/platform/logging.alauda.io/v2/clusters/{cluster}/logs/archive"/>
12-
<OpenAPIPath path="/platform/logging.alauda.io/v2/projects/{project}/clusters/{cluster}/namespaces/{namespace}/logs/archive"/>
10+
<OpenAPIPath
11+
path={[
12+
'/platform/logging.alauda.io/v2/logs/archive',
13+
'/platform/logging.alauda.io/v2/clusters/{cluster}/logs/archive',
14+
'/platform/logging.alauda.io/v2/projects/{project}/clusters/{cluster}/namespaces/{namespace}/logs/archive',
15+
]}
16+
/>

docs/en/apis/advanced_apis/log/context.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ i18n:
77

88
# Context
99

10-
<OpenAPIPath path="/platform/logging.alauda.io/v2/logs/context"/>
11-
<OpenAPIPath path="/platform/logging.alauda.io/v2/clusters/{cluster}/logs/context"/>
12-
<OpenAPIPath path="/platform/logging.alauda.io/v2/projects/{project}/clusters/{cluster}/namespaces/{namespace}/logs/context"/>
10+
<OpenAPIPath
11+
path={[
12+
'/platform/logging.alauda.io/v2/logs/context',
13+
'/platform/logging.alauda.io/v2/clusters/{cluster}/logs/context',
14+
'/platform/logging.alauda.io/v2/projects/{project}/clusters/{cluster}/namespaces/{namespace}/logs/context',
15+
]}
16+
/>

docs/en/apis/advanced_apis/log/search.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ i18n:
77

88
# Search
99

10-
<OpenAPIPath path="/platform/logging.alauda.io/v2/logs/search"/>
11-
<OpenAPIPath path="/platform/logging.alauda.io/v2/clusters/{cluster}/logs/search"/>
12-
<OpenAPIPath path="/platform/logging.alauda.io/v2/projects/{project}/clusters/{cluster}/namespaces/{namespace}/logs/search"/>
10+
<OpenAPIPath
11+
path={[
12+
'/platform/logging.alauda.io/v2/logs/search',
13+
'/platform/logging.alauda.io/v2/clusters/{cluster}/logs/search',
14+
'/platform/logging.alauda.io/v2/projects/{project}/clusters/{cluster}/namespaces/{namespace}/logs/search',
15+
]}
16+
/>

docs/en/apis/advanced_apis/monitor/indicators.mdx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ sourceSHA: 16d2d3fa23c37585a14f34f86ceb05542f035409d29c5e91b4f3e6da53167fa1
44

55
# Indicators [monitoring.alauda.io/v1beta1]
66

7-
<OpenAPIPath path="/platform/monitoring.alauda.io/v1beta1/clusters/{cluster}/indicators" />
8-
9-
<OpenAPIPath path="/platform/monitoring.alauda.io/v1beta1/projects/{project}/indicators" />
10-
11-
<OpenAPIPath path="/platform/monitoring.alauda.io/v1beta1/projects/{project}/clusters/{cluster}/namespaces/{namespace}/indicators" />
7+
<OpenAPIPath
8+
path={[
9+
'/platform/monitoring.alauda.io/v1beta1/clusters/{cluster}/indicators',
10+
'/platform/monitoring.alauda.io/v1beta1/projects/{project}/indicators',
11+
'/platform/monitoring.alauda.io/v1beta1/projects/{project}/clusters/{cluster}/namespaces/{namespace}/indicators',
12+
]}
13+
/>

docs/en/apis/advanced_apis/monitor/metrics.mdx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ sourceSHA: 8fda8bb72100def30b6a497567611e9df184d1785a4fa920383613ef10b811dc
44

55
# Metrics [monitoring.alauda.io/v1beta1]
66

7-
<OpenAPIPath path="/platform/monitoring.alauda.io/v1beta1/clusters/{cluster}/metrics" />
8-
9-
<OpenAPIPath path="/platform/monitoring.alauda.io/v1beta1/projects/{project}/metrics" />
10-
11-
<OpenAPIPath path="/platform/monitoring.alauda.io/v1beta1/projects/{project}/clusters/{cluster}/namespaces/{namespace}/metrics" />
7+
<OpenAPIPath
8+
path={[
9+
'/platform/monitoring.alauda.io/v1beta1/clusters/{cluster}/metrics',
10+
'/platform/monitoring.alauda.io/v1beta1/projects/{project}/metrics',
11+
'/platform/monitoring.alauda.io/v1beta1/projects/{project}/clusters/{cluster}/namespaces/{namespace}/metrics',
12+
]}
13+
/>

docs/en/apis/advanced_apis/monitor/variables.mdx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ sourceSHA: 3aa1c2708eed20fd5a33043f3ee378d1895625619b1af54b04d8f7a5225cf6ef
44

55
# Variables [monitoring.alauda.io/v1beta1]
66

7-
<OpenAPIPath path="/platform/monitoring.alauda.io/v1beta1/clusters/{cluster}/variables" />
8-
9-
<OpenAPIPath path="/platform/monitoring.alauda.io/v1beta1/projects/{project}/variables" />
10-
11-
<OpenAPIPath path="/platform/monitoring.alauda.io/v1beta1/projects/{project}/clusters/{cluster}/namespaces/{namespace}/variables" />
7+
<OpenAPIPath
8+
path={[
9+
'/platform/monitoring.alauda.io/v1beta1/clusters/{cluster}/variables',
10+
'/platform/monitoring.alauda.io/v1beta1/projects/{project}/variables',
11+
'/platform/monitoring.alauda.io/v1beta1/projects/{project}/clusters/{cluster}/namespaces/{namespace}/variables',
12+
]}
13+
/>

docs/en/apis/kubernetes_apis/workload/pod.mdx

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,12 @@
33
<K8sAPI name="io.k8s.api.core.v1.Pod" pathPrefix="/kubernetes/{cluster}" />
44

55
<OpenAPIPath
6-
path="/api/v1/namespaces/{namespace}/pods/{name}/eviction"
7-
pathPrefix="/kubernetes/{cluster}"
8-
/>
9-
10-
<OpenAPIPath
11-
path="/api/v1/namespaces/{namespace}/pods/{name}/log"
12-
pathPrefix="/kubernetes/{cluster}"
13-
/>
14-
15-
<OpenAPIPath
16-
path="/api/v1/namespaces/{namespace}/pods/{name}/exec"
17-
pathPrefix="/kubernetes/{cluster}"
18-
/>
19-
20-
<OpenAPIPath
21-
path="/api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers"
22-
pathPrefix="/kubernetes/{cluster}"
23-
/>
24-
25-
<OpenAPIPath
26-
path="/api/v1/namespaces/{namespace}/pods/{name}/attach"
6+
path={[
7+
'/api/v1/namespaces/{namespace}/pods/{name}/eviction',
8+
'/api/v1/namespaces/{namespace}/pods/{name}/log',
9+
'/api/v1/namespaces/{namespace}/pods/{name}/exec',
10+
'/api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers',
11+
'/api/v1/namespaces/{namespace}/pods/{name}/attach',
12+
]}
2713
pathPrefix="/kubernetes/{cluster}"
2814
/>

docs/en/configure/backup/overview.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Currently supports ClickHouse. Contact technical support.
3232

3333
For monitoring backup and restore, see [VictoriaMetrics Backup and Recovery](/observability/monitor/how_to/restore_victoriametrics.mdx).
3434

35-
## Application backup and restore
35+
## Application backup and restore \{#application-backup-and-restore}
3636

3737
As a cluster administrator, you can back up and restore applications running on Alauda Container Platform by using Velero.
3838

@@ -43,7 +43,7 @@ Application backup and restore consists of two components:
4343
- **Alauda Container Platform Data Backup Essentials**: Provides the UI and is installed on the global cluster.
4444
- **Alauda Container Platform Data Backup for Velero**: Provides Velero and is installed on workload clusters.
4545

46-
### Application installation
46+
### Application installation \{#application-installation}
4747

4848
To enable application backup and restore:
4949

0 commit comments

Comments
 (0)