Skip to content

Commit

Permalink
Port the changes made in vitessio#658
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
  • Loading branch information
frouioui committed Feb 25, 2025
1 parent cfd4d29 commit 892036f
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 19 deletions.
9 changes: 8 additions & 1 deletion examples/operator/101_initial_cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ kind: VitessCluster
metadata:
name: example
spec:
backup:
engine: xtrabackup
locations:
- volume:
hostPath:
path: /tmp
type: Directory
images:
vtctld: vitess/lite:latest
vtadmin: vitess/vtadmin:latest
Expand All @@ -15,7 +22,7 @@ spec:
vtbackup: vitess/lite:latest
vtorc: vitess/lite:latest
mysqld:
mysql80Compatible: mysql:8.0.40
mysql80Compatible: vitess/lite:latest
mysqldExporter: prom/mysqld-exporter:v0.14.0
cells:
- name: zone1
Expand Down
7 changes: 7 additions & 0 deletions examples/operator/201_customer_tablets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ kind: VitessCluster
metadata:
name: example
spec:
backup:
engine: xtrabackup
locations:
- volume:
hostPath:
path: /tmp
type: Directory
images:
vtctld: vitess/lite:latest
vtadmin: vitess/vtadmin:latest
Expand Down
7 changes: 7 additions & 0 deletions examples/operator/302_new_shards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ kind: VitessCluster
metadata:
name: example
spec:
backup:
engine: xtrabackup
locations:
- volume:
hostPath:
path: /tmp
type: Directory
images:
vtctld: vitess/lite:latest
vtadmin: vitess/vtadmin:latest
Expand Down
7 changes: 7 additions & 0 deletions examples/operator/306_down_shard_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ kind: VitessCluster
metadata:
name: example
spec:
backup:
engine: xtrabackup
locations:
- volume:
hostPath:
path: /tmp
type: Directory
images:
vtctld: vitess/lite:latest
vtadmin: vitess/vtadmin:latest
Expand Down
26 changes: 13 additions & 13 deletions examples/operator/401_scheduled_backups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ spec:
path: /tmp
type: Directory
schedules:
- name: "every-minute-customer"
schedule: "* * * * *"
- name: "commerce"
schedule: "*/2 * * * *"
resources:
requests:
cpu: 100m
Expand All @@ -23,14 +23,11 @@ spec:
failedJobsHistoryLimit: 3
jobTimeoutMinute: 5
strategies:
- name: BackupShard
keyspace: "customer"
shard: "-80"
- name: BackupShard
keyspace: "customer"
shard: "80-"
- name: "every-minute-commerce"
schedule: "* * * * *"
- name: commerce_x
keyspace: "commerce"
shard: "-"
- name: "customer"
schedule: "*/2 * * * *"
resources:
requests:
cpu: 100m
Expand All @@ -41,9 +38,12 @@ spec:
failedJobsHistoryLimit: 3
jobTimeoutMinute: 5
strategies:
- name: BackupShard
keyspace: "commerce"
shard: "-"
- name: customer_80-x
keyspace: "customer"
shard: "80-"
- name: customer_x-80
keyspace: "customer"
shard: "-80"
images:
vtctld: vitess/lite:latest
vtadmin: vitess/vtadmin:latest
Expand Down
14 changes: 9 additions & 5 deletions examples/operator/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ spec:
cluster:
type: string
concurrencyPolicy:
default: Forbid
enum:
- Allow
- Forbid
Expand Down Expand Up @@ -491,8 +492,6 @@ spec:
example: commerce
type: string
name:
enum:
- BackupShard
type: string
shard:
example: '-'
Expand Down Expand Up @@ -542,6 +541,11 @@ spec:
lastScheduledTime:
format: date-time
type: string
lastScheduledTimes:
additionalProperties:
format: date-time
type: string
type: object
type: object
type: object
served: true
Expand Down Expand Up @@ -2028,6 +2032,7 @@ spec:
type: string
type: object
concurrencyPolicy:
default: Forbid
enum:
- Allow
- Forbid
Expand Down Expand Up @@ -2099,8 +2104,6 @@ spec:
example: commerce
type: string
name:
enum:
- BackupShard
type: string
shard:
example: '-'
Expand Down Expand Up @@ -7695,7 +7698,8 @@ spec:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: vitess-operator
image: planetscale/vitess-operator:latest
image: docker.io/planetscale/vitess-operator:latest
imagePullPolicy: Never
name: vitess-operator
resources:
limits:
Expand Down

0 comments on commit 892036f

Please sign in to comment.