append namespace to dns name in REPLICATION_GROUP_SEEDS#246
append namespace to dns name in REPLICATION_GROUP_SEEDS#246adrianNEMO wants to merge 2 commits intooracle:masterfrom
Conversation
…able Signed-off-by: Adrian Brennig <mail@adrian-brennig.de>
prydie
left a comment
There was a problem hiding this comment.
Thanks for the contribution @db-adrian!
Unfortunately the change requires a little more work due to the limitation that InnoDB cluster member hostnames must be shorter than 61 characters (see: MySQL Bug #90601).
Currently we validate that the length of the MySQL Cluster resource name is no greater than 28 characters as we address members by {cluster name}-{ordinal}.{cluster name}. This will need to be changed to instead check that {cluster name}-{ordinal}.{cluster name}.{namespace} is no longer than 60 characters.
Finally we'll need a mechanism to ensure validation does not fail for clusters created with the existing version of the MySQL operator and to test that the changes don't impact existing clusters (e.g. what happens if {cluster name}-0.{cluster name}.{namespace} for an existing cluster is greater than 60 characters in length).
Related validation code:
mysql-operator/pkg/apis/mysql/v1alpha1/validation.go
Lines 37 to 54 in c0ef271
Additionally, you'll need to sign the Oracle Contributor Agreement so we can merge your changes once we've got the above ironed out. Do let me know if you've already done so and I'll chase internally to get it processed.
Thanks again!
- remove Println in getReplicationGroupSeeds Signed-off-by: Adrian Brennig <mail@adrian-brennig.de>
|
I understand. Thank you for explaining the problem. I have signed the Oracle Contributor Agreement. |
This could fix issue #244
Signed-off-by: Adrian Brennig mail@adrian-brennig.de