-
Notifications
You must be signed in to change notification settings - Fork 283
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
Added Cadence clusterMetadata configuration #1278
Conversation
6851765
to
d4c77e5
Compare
65104aa
to
3ab6710
Compare
ecca195
to
e18536f
Compare
b312d5e
to
4824108
Compare
Do you have any updates on this? BTW I created a topic about it: cadence-workflow/cadence#4356 Hope this can help you understand the config |
Thanks. No, unfortunately I don't. I have prioritization issues right now. Haven't forgotten it, just can't find the time to finish this. |
It was broken since chart 0.18.0. .Values.server.frontend.service.port is required for the Cadence K8s service in the Helm chart, thus it will always be defined, so I changed the defaulting behavior to always use that, because it would never fall back to the dockerize env var .Env.FRONTEND_PORT or even back to literal 7933.
badb911
to
e626796
Compare
@longquanzheng I have done the rework in https://github.com/banzaicloud/banzai-charts/compare/482410871de6c5c05fa0f51a928ce9f996adf696..badb911b28f51ee99b5650d8601a230a27cb4da5. I believe this approach is going to work fine for both single and multiple Cadence cluster setups and accounts for release name customization and also Also auto-assigns failover version (only the absolute maximum number of clusters ever added to the group has to be fixed beforehand and the increment and initial versions are calculated from there).
I have also tested these changes with one and two Cadence cluster configs (the latter with only firing up 1 actual cluster to see if the template config is generated well), both with defaults and manual values (even erroneous ones), they looked good in my tests, but if you have the capacity to double check it, that would be appreciated. I have created an issue for extending the service publishing support in #1284, so load balancers, external names and ingresses may also be supported. |
@pregnor Thank you for the great work! I have left some comments about ranging map and the frontend service that you mentioned. |
e626796
to
d7a21e7
Compare
febd48f
to
5a0499c
Compare
When releasing this one, probably should announce that for upgrading , the cluster name value needs to be explicitly defined so that it is backward compatible with existing cluster |
I'm going to add it to the release notes as a note. |
5a0499c
to
d3a3be9
Compare
@longquanzheng I'm also adding explanatory upgrade configuration examples to the cadence/README.md in #1279 for the 0.21.0 release in addition to the release tag annotation (kudos to Mark for the idea). |
What's in this PR?
Added Cadence clusterMetadata configuration.
Extended the
values.yaml
with a corresponding configuration section in order to be able to overwrite the default configuration.Also let the old default configuration be used whenever the
values.yaml.server.config.clusterMetadata
section is not defined to be backward compatible with oldvalues.yaml
files.Related to #1275, I also fixed the legacy
clusterMetadata
default values, it was broken since 0.18, because of the conditional set on a raw string of embedded template which always resolved to true.Why?
It was requested in #1274.
Additional context
Tested with the regular chart update test.
Checklist