Skip to content

Commit

Permalink
Merge pull request #500 from andyli029/neater
Browse files Browse the repository at this point in the history
*: modify name to CamelCase. #494
  • Loading branch information
andyli029 authored May 31, 2022
2 parents 171acda + 007669e commit b3e4120
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 @@ -34,7 +34,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 api/v1alpha1/mysqlcluster_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (r *MysqlCluster) SetupWebhookWithManager(mgr ctrl.Manager) error {
// TODO(user): EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!

// TODO(user): change verbs to "verbs=create;update;delete" if you want to enable deletion validation.
//+kubebuilder:webhook:path=/convert,mutating=false,failurePolicy=fail,sideEffects=None,groups=mysql.radondb.com,resources=mysqlclusters,verbs=create;update,versions=v1alpha1,name=vmysqlcluster.kb.io,admissionReviewVersions=v1
//+kubebuilder:webhook:path=/validate-mysql-radondb-com-v1alpha1-mysqlcluster,mutating=false,failurePolicy=fail,sideEffects=None,groups=mysql.radondb.com,resources=mysqlclusters,verbs=create;update,versions=v1alpha1,name=vmysqlcluster.kb.io,admissionReviewVersions=v1

var _ webhook.Validator = &MysqlCluster{}

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 @@ -58,7 +58,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 @@ -58,7 +58,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: ""
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 b3e4120

Please sign in to comment.