Skip to content

Release v0.11.0

Compare
Choose a tag to compare
@github-actions github-actions released this 07 Mar 02:10
· 625 commits to main since this release
1604352

See CHANGELOG.md for details.

In 0.11.0, we have introduced the new API version v1beta2 for the MySQLCluster and the BackupPolicy.

The MySQLCluster v1beta2 has two changes from v1beta1.

  1. Split the .spec.serviceTemplate into .spec.primaryServiceTemplate and .spec.replicaServiceTemplate.
    • So you can set individual labels and annotations for the primary service and the replica service.
  2. Change the field names from .spec.startupDelaySeconds to .spec.startupWaitSeconds.

v1beta1:

apiVersion: moco.cybozu.com/v1beta1
kind: MySQLCluster
...
spec:
  serviceTemplate:
    metadata:
      labels:
        foo: bar
  startupDelaySeconds: 21600

v1beta2:

apiVersion: moco.cybozu.com/v1beta2 # Change the api version.
kind: MySQLCluster
...
spec:
  # Split from serviceTemplate.
  primaryServiceTemplate:
    metadata:
      labels:
        foo: bar
  replicaServiceTemplate:
    metadata:
      labels:
        foo: baz

  # Change the filed name from startupDelaySeconds.
  startupWaitSeconds: 21600

The BackupPolicy v1beta2 has no change from v1beta1. We only update the API version to match with the MySQLCluster.

You can get v1beta2 resources from the applied v1beta1 resources by kubectl get.

# Get MySQLCluster v1beta2.
kubectl get mysqlclusters.v1beta2.moco.cybozu.com -n <NAMESPACE> <MYSQLCLUSTER_NAME> -o yaml

# Get BackupPolicy v1beta2.
kubectl get backuppolicies.v1beta2.moco.cybozu.com  -n <NAMESPACE> <BACKUPPOLICY_NAME> -o yaml