Skip to content

Commit

Permalink
*: modify name to CamelCase. radondb#494
Browse files Browse the repository at this point in the history
  • Loading branch information
andyli029 committed May 27, 2022
1 parent 8538f05 commit 9bf49cb
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/backup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type BackupSpec struct {

// HostName represents the host for which to take backup
// If is empty, is use leader HostName
HostName string `json:"hostname,omitempty"`
HostName string `json:"hostName,omitempty"`

// Represents the ip address of the nfs server.
// +optional
Expand Down
2 changes: 1 addition & 1 deletion charts/mysql-operator/crds/mysql.radondb.com_backups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
description: History Limit of job
format: int32
type: integer
hostname:
hostName:
description: HostName represents the host for which to take backup
If is empty, is use leader HostName
type: string
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/mysql.radondb.com_backups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
description: History Limit of job
format: int32
type: integer
hostname:
hostName:
description: HostName represents the host for which to take backup
If is empty, is use leader HostName
type: string
Expand Down
4 changes: 2 additions & 2 deletions config/samples/mysql_v1alpha1_backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ spec:
# Add fields here
image: radondb/mysql57-sidecar:v2.2.0
# hostname if empty, use the leader as hostname
hostname: sample-mysql-0
clustername: sample
hostName: sample-mysql-0
clusterName: sample
# nfsServerAddress: ""
2 changes: 1 addition & 1 deletion config/webhook/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ webhooks:
service:
name: webhook-service
namespace: system
path: /validate-mysql-radondb-com-v1alpha1-mysqlcluster
path: /convert
failurePolicy: Fail
name: vmysqlcluster.kb.io
rules:
Expand Down
8 changes: 4 additions & 4 deletions docs/en-us/deploy_backup_restore_s3.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ metadata:
name: backup-sample1
spec:
# Add fields here
hostname: sample-mysql-0
clustername: sample
hostName: sample-mysql-0
clusterName: sample

```
| name | function |
|------|--------|
|hostname|pod name in cluser|
|clustername|cluster name|
|hostName|pod name in cluser|
|clusterName|cluster name|

### start cluster

Expand Down
8 changes: 4 additions & 4 deletions docs/zh-cn/deploy_backup_restore_s3.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ metadata:
name: backup-sample1
spec:
# Add fields here
hostname: sample-mysql-0
clustername: sample
hostName: sample-mysql-0
clusterName: sample

```
| name | function |
|------|--------|
|hostname|pod name in cluser|
|clustername|cluster name|
|hostName|pod name in cluser|
|clusterName|cluster name|

### start cluster

Expand Down

0 comments on commit 9bf49cb

Please sign in to comment.