Conversation
2c14690 to
822d697
Compare
87c021a to
ef6babf
Compare
|
|
||
| ## [Unreleased] | ||
|
|
||
| ### Support MySQLCluster v1beta2 API |
There was a problem hiding this comment.
Manual operations are required to support conversion webhooks in Helm Chart, which is documented in the changelog.
Co-authored-by: Yamamoto, Hirotaka <ymmt2005@gmail.com>
| var bucketConfig mocov1beta2.BucketConfig | ||
|
|
||
| if err := mocov1beta1.Convert__BucketConfig_To_v1beta2_BucketConfig(&jc.BucketConfig, &bucketConfig, nil); err != nil { | ||
| return fmt.Errorf("failed to convert bucket config from v1beta1 to v1beta2: %w", err) | ||
| } |
There was a problem hiding this comment.
We should have retrieved BackupPolicy with v1beta2 at line 841 so that
this conversion can be removed.
4f5c0ae#diff-67f34c9b4cabb4950b383eab55b6ebeeebc524fa70c888bdc132662c16a7899fR841
There was a problem hiding this comment.
Thank you for your review comments!
I assumed that I would only create the v1beta2 API for MySQLCluster and continue to use v1beta1 without upgrading the BackupPolicy.
This conversion is necessary because MySQLCluster (v1beta2 package) and BackupPolicy (v1beta1 package) use a common JobConfig structure.
Or should I create a v1beta2 API for BackupPolicy too, even if there are no changes to the API?
There was a problem hiding this comment.
I think the same version would be better.
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
802b183 to
4cc80be
Compare
|
@d-kuro I have one question, why did you change test package from |
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
|
@d-kuro Please update apiVersion in examples and documents. $ git grep moco.cybozu.com/v1beta1 docs examples
docs/custom-mysqld.md:apiVersion: moco.cybozu.com/v1beta1
docs/troubles.md:apiVersion: moco.cybozu.com/v1beta1
docs/usage.md:apiVersion: moco.cybozu.com/v1beta1
docs/usage.md:apiVersion: moco.cybozu.com/v1beta1
docs/usage.md:apiVersion: moco.cybozu.com/v1beta1
docs/usage.md:apiVersion: moco.cybozu.com/v1beta1
docs/usage.md:apiVersion: moco.cybozu.com/v1beta1
docs/usage.md:apiVersion: moco.cybozu.com/v1beta1
docs/usage.md:apiVersion: moco.cybozu.com/v1beta1
docs/usage.md:apiVersion: moco.cybozu.com/v1beta1
docs/usage.md:apiVersion: moco.cybozu.com/v1beta1
docs/usage.md:apiVersion: moco.cybozu.com/v1beta1
docs/usage.md:apiVersion: moco.cybozu.com/v1beta1
examples/anti-affinity.yaml:apiVersion: moco.cybozu.com/v1beta1
examples/collect-metrics.yaml:apiVersion: moco.cybozu.com/v1beta1
examples/custom-mycnf.yaml:apiVersion: moco.cybozu.com/v1beta1
examples/guaranteed.yaml:apiVersion: moco.cybozu.com/v1beta1
examples/loadbalancer.yaml:apiVersion: moco.cybozu.com/v1beta1Also, please fix the usage of $ git grep serviceTemplate docs examples
docs/reconcile.md:The Services' labels, annotations, and `spec` fields can be customized with MySQLCluster's `status.serviceTemplate` field.
docs/usage.md: serviceTemplate:
examples/loadbalancer.yaml: # serviceTemplate allows you to specify annotations, labels, and spec
examples/loadbalancer.yaml: serviceTemplate: |
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
refs: #337
Add MySQLCluster v1beta2 API and conversion webhook.
MySQLCluster v1beta2
Split the
.spec.serviceTemplateinto.spec.primaryServiceTemplateand.spec.replicaServiceTemplate.Befor:
After: