-
-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow additional service configuration for MysqlCluster #747
base: master
Are you sure you want to change the base?
Conversation
fd1138c
to
adc3d74
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for your contribution。
I think it's a good idea, but we need to think hard about how to design the API
Or we can create some exporter services instead of making changes to the original services. |
pkg/controller/mysqlcluster/internal/syncer/healthy_replicas_service.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you very much for your contribution, please squash your commits
WDYT, cc @calind |
The The place where extra services are created might be within the |
Thank you for your reply, but could you elaborate more on this? |
You can go in the |
I see that. The only issue with this approach is that I am forced to use the Helm chart for creating a cluster. Services will not be created when a cluster is created using a plain yaml file or kustomize. |
right |
That's the point of my PR. ;) |
It's probably about design, we need to be careful about extending |
I do agree that this PR changes API layout a little bit (though, I do not think it changes UX or introduces any significant changes to the overall application design). Unfortunately, the Helm chart approach simply does not work for my use case (creating mysql clusters programmatically). :( So, feel free to close the PR if you believe it adds unnecessary complexity, I will just stick to my fork. |
WDYT @calind |
This pull request adds capability to set ServiceSpec for MysqlCluster.