Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit 9892fac

Browse files
committed
Docs fixes
Signed-off-by: Marcin Ciszak <marcin@surflogic.net>
1 parent e3e3197 commit 9892fac

File tree

3 files changed

+22
-7
lines changed

3 files changed

+22
-7
lines changed

docs/user/backup.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ spec:
156156
schedule: '*/30 * * * *'
157157
backupTemplate:
158158
executor:
159-
provider: mysqldump
160-
databases:
161-
- test
159+
mysqldump:
160+
databases:
161+
- test
162162
storageProvider:
163163
s3:
164164
endpoint: ocitenancy.compat.objectstorage.ociregion.oraclecloud.com

docs/user/clusters.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ apiVersion: mysql.oracle.com/v1alpha1
183183
kind: Cluster
184184
metadata:
185185
name: mysql-cluster-with-config
186+
spec:
186187
members: 3
187188
config:
188189
name: mycnf
@@ -198,6 +199,20 @@ apiVersion: mysql.oracle.com/v1alpha1
198199
kind: Cluster
199200
metadata:
200201
name: mysql-cluster-with-custom-serverid
202+
spec:
201203
members: 3
202204
baseServerId: 42
203205
```
206+
207+
### Create a cluster with specific version of MySQL Server
208+
209+
By default, the MySQL Operator starts a cluster with MySQL Server version set to minimum supported version defined by the Operator. This can be overriden in the cluster spec given the version used is equal to or higher than minimum supported version.
210+
211+
```yaml
212+
apiVersion: mysql.oracle.com/v1alpha1
213+
kind: Cluster
214+
metadata:
215+
name: mysql-cluster-with-custom-server-version
216+
spec:
217+
version: 8.0.12
218+
```

docs/user/restore.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ The MySQL Operator supports the notion of restoring a cluster from an existing b
55
## On-demand restores
66

77
You can request a restore from a previous backup at any time by submitting a
8-
Restore custom resource to the operator. The backupRef is the name of the
9-
backup that you wish to restore, and the clusterRef is the name of the
8+
Restore custom resource to the operator. The backup is the name of the
9+
backup that you wish to restore, and the cluster is the name of the
1010
destination cluster of the restore operation.
1111

1212
```yaml
@@ -15,8 +15,8 @@ kind: Restore
1515
metadata:
1616
name: example-restore
1717
spec:
18-
clusterRef:
18+
cluster:
1919
name: mycluster
20-
backupRef:
20+
backup:
2121
name: mysql-backup
2222
```

0 commit comments

Comments
 (0)