-
Notifications
You must be signed in to change notification settings - Fork 165
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
K8SPG-644 - Fix tolerations iteration issue for pg-db cluster template #369
K8SPG-644 - Fix tolerations iteration issue for pg-db cluster template #369
Conversation
Instead of replacing with single value, read array of tolerations for pg-db cluster template.
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 for the contribution! Please bump the chart version.
This fix might break the existing setup of users as the workaround was to put single What should be ideal version bump in this case? Do the charts use semantic versioning? Then it might require to increase major version due to incompatibility with older versions. Changing major version seems like an overkill. Or else we can resort to conditional logic if the user passes array, use the array, else use the direct map values as shown below.
Please suggest. |
@kv-dhyey-moliya Usually we bump the "patch" version, but if it's something that breaks compatibility then we merge it on the next operator release when the "minor" version is bumped. At the current moment we do not bump "major" version at all. Basically our helm chart versions follow the operator version except that we can bump the "patch" version if there's a small fix just for the helm chart. |
@tplavcic thank you for the update. Then, should I update the chart version to a minor version for this PR? Or leave it as it is for now? Additionally, As per my other suggestion, we can make it backwards compatible if we do conditional check, then we can update with a patch version, but again that will add unnecessary conditional code into the codebase. Ping me if you feel it's ok for now to add the conditional code, then I'll update it accordingly with a patch version. |
I think just leave it for now, when we will work on the next release we will merge your fix to the release branch and make any additional changes needed. |
Currently the cluster template incorrectly takes only single value (object) for tolerations instead of accepting an array of objects.
There is already an issue for this : #333
This PR fixes that issue by updating the template code that Instead of replacing with single value, replaces array of tolerations for pg-db cluster template.