fix(RHDHBUGS-2015): fix sonataflow DB ref name for replication architecture of PostgreSQL - #235
Conversation
5505ff8 to
2625b99
Compare
2625b99 to
b0615c7
Compare
|
/cc @elai-shalev |
|
@rm3l: GitHub didn't allow me to request PR reviews from the following users: elai-shalev. Note that only redhat-developer members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
| passwordKey: password | ||
| serviceRef: | ||
| name: {{ .Release.Name }}-postgresql | ||
| name: {{ .Release.Name }}-postgresql{{- if eq .Values.upstream.postgresql.architecture "replication" }}-primary{{- end }} |
There was a problem hiding this comment.
This works with the default settings, but I can see here that the -primary suffix depends on the primary.name value.
And indeed, the RHDH pod crashes if I deploy with --set upstream.postgresql.architecture=replication --set upstream.postgresql.primary.name=my-prim.
That said, I guess we would still have an issue as the same hardcoded suffix is used in the upstream Backstage chart: https://github.com/backstage/charts/blob/main/charts/backstage/templates/_helpers.tpl#L39C50-L39C58
So fine for now with the default settings, but I think this should be reported and fixed in the upstream Backstage chart so that users can use a different primary name.
…ecture of PostgreSQL Signed-off-by: Pavel Macík <pavel.macik@gmail.com>
b0615c7 to
0655462
Compare
Co-authored-by: pmacik <pmacik@users.noreply.github.com>
|
|
|
c6b7328
into
redhat-developer:main
|
Cherry-picking this to 1.7, as requested in this comment. /cherry-pick release-1.7 |
|
@rm3l: #235 failed to apply on top of branch "release-1.7": DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
…ecture of PostgreSQL (redhat-developer#235) * fix(RHDHBUGS-2015): fix sonataflow DB ref name for replication architecture of PostgreSQL Signed-off-by: Pavel Macík <pavel.macik@gmail.com> * chore(pre-commit): Auto-fix hooks Co-authored-by: pmacik <pmacik@users.noreply.github.com> --------- Signed-off-by: Pavel Macík <pavel.macik@gmail.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: pmacik <pmacik@users.noreply.github.com>



Description of the change
This PR changes RHDH DB ref name (adds
-primarysuffix) if the PostgreSQL architecture is set toreplicationto match the name of the DB service.Which issue(s) does this PR fix or relate to
How to test changes / Special notes to the reviewer
Set the
upstream.postgresql.architecture=replicationandupstream.postgresql.replication.enabled=trueand other related Helm chart values and then enable Orchestrator plugin (orchestrator.enabled=true) - install Helm chart.Checklist
Chart.yamlaccording to Semantic Versioning.values.yamland added to the corresponding README.md. The pre-commit utility can be used to generate the necessary content. Usepre-commit run -ato apply changes. The pre-commit Workflow will do this automatically for you if needed.pre-commithook.ct lintcommand.Summary by Sourcery
Fix SonataFlow Helm chart to reference the primary PostgreSQL instance when replication is enabled and bump the chart version
Bug Fixes:
Chores: