Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
RidRisR committed Dec 4, 2024
1 parent 3bcad79 commit 6713690
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 56 deletions.
45 changes: 12 additions & 33 deletions docs/api-references/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3447,6 +3447,7 @@ string
<p>
(<em>Appears on:</em>
<a href="#backupspec">BackupSpec</a>,
<a href="#compactspec">CompactSpec</a>,
<a href="#restorespec">RestoreSpec</a>)
</p>
<p>
Expand Down Expand Up @@ -5544,17 +5545,6 @@ bool
</tr>
<tr>
<td>
<code>version</code></br>
<em>
string
</em>
</td>
<td>
<p>Version specifies the tool image version used in compact <code>Backup</code>.</p>
</td>
</tr>
<tr>
<td>
<code>brImage</code></br>
<em>
string
Expand All @@ -5569,15 +5559,15 @@ For BR image, if it does not contain tag, Pod will use image &lsquo;BrImage:${Ti
</tr>
<tr>
<td>
<code>tikvImage</code></br>
<code>br</code></br>
<em>
string
<a href="#brconfig">
BRConfig
</a>
</em>
</td>
<td>
<em>(Optional)</em>
<p>TiKVImage specifies the tikv image used in compact <code>Backup</code>.
For examples <code>spec.tikvImage: pingcap/tikv:v4.0.8</code></p>
<p>BRConfig is the configs for BR</p>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -5730,7 +5720,7 @@ CompactStatus
<a href="#compactbackup">CompactBackup</a>)
</p>
<p>
<p>BackupSpec contains the backup specification for a tidb cluster.</p>
<p>CompactSpec contains the backup specification for a tidb cluster.</p>
</p>
<table>
<thead>
Expand Down Expand Up @@ -5910,17 +5900,6 @@ bool
</tr>
<tr>
<td>
<code>version</code></br>
<em>
string
</em>
</td>
<td>
<p>Version specifies the tool image version used in compact <code>Backup</code>.</p>
</td>
</tr>
<tr>
<td>
<code>brImage</code></br>
<em>
string
Expand All @@ -5935,15 +5914,15 @@ For BR image, if it does not contain tag, Pod will use image &lsquo;BrImage:${Ti
</tr>
<tr>
<td>
<code>tikvImage</code></br>
<code>br</code></br>
<em>
string
<a href="#brconfig">
BRConfig
</a>
</em>
</td>
<td>
<em>(Optional)</em>
<p>TiKVImage specifies the tikv image used in compact <code>Backup</code>.
For examples <code>spec.tikvImage: pingcap/tikv:v4.0.8</code></p>
<p>BRConfig is the configs for BR</p>
</td>
</tr>
<tr>
Expand Down
40 changes: 36 additions & 4 deletions manifests/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8208,6 +8208,42 @@ spec:
default: 30m
type: string
type: object
br:
properties:
checkRequirements:
type: boolean
checksum:
type: boolean
cluster:
type: string
clusterNamespace:
type: string
concurrency:
format: int32
type: integer
db:
type: string
logLevel:
type: string
onLine:
type: boolean
options:
items:
type: string
type: array
rateLimit:
type: integer
sendCredToTikv:
type: boolean
statusAddr:
type: string
table:
type: string
timeAgo:
type: string
required:
- cluster
type: object
brImage:
type: string
concurrency:
Expand Down Expand Up @@ -9199,8 +9235,6 @@ spec:
type: string
tikvGCLifeTime:
type: string
tikvImage:
type: string
tolerations:
items:
properties:
Expand All @@ -9219,8 +9253,6 @@ spec:
type: array
useKMS:
type: boolean
version:
type: string
volumeBackupInitJobMaxActiveSeconds:
default: 600
type: integer
Expand Down
40 changes: 36 additions & 4 deletions manifests/crd/v1/pingcap.com_compactbackups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,42 @@ spec:
default: 30m
type: string
type: object
br:
properties:
checkRequirements:
type: boolean
checksum:
type: boolean
cluster:
type: string
clusterNamespace:
type: string
concurrency:
format: int32
type: integer
db:
type: string
logLevel:
type: string
onLine:
type: boolean
options:
items:
type: string
type: array
rateLimit:
type: integer
sendCredToTikv:
type: boolean
statusAddr:
type: string
table:
type: string
timeAgo:
type: string
required:
- cluster
type: object
brImage:
type: string
concurrency:
Expand Down Expand Up @@ -2149,8 +2185,6 @@ spec:
type: string
tikvGCLifeTime:
type: string
tikvImage:
type: string
tolerations:
items:
properties:
Expand All @@ -2169,8 +2203,6 @@ spec:
type: array
useKMS:
type: boolean
version:
type: string
volumeBackupInitJobMaxActiveSeconds:
default: 600
type: integer
Expand Down
18 changes: 5 additions & 13 deletions pkg/apis/pingcap/v1alpha1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pkg/apis/pingcap/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/controller/compactbackup/compact_backup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ func (c *Controller) makeBackupJob(backup *v1alpha1.CompactBackup) (*batchv1.Job
},
Containers: []corev1.Container{
{
Name: "backup-manager",
Image: c.deps.CLIConfig.TiDBBackupManagerImage,
Name: "backup-manager",
Image: c.deps.CLIConfig.TiDBBackupManagerImage,
Args: args,
Env: envVars,
VolumeMounts: volumeMounts,
Expand Down

0 comments on commit 6713690

Please sign in to comment.