- 
                Notifications
    
You must be signed in to change notification settings  - Fork 6.2k
 
Adding capability to stream off of a primary when deployed via Helm #185
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
Conversation
…in PGOv5.3, removing requirement to specify a repo when standby is enabled.
| standby: | ||
| enabled: {{ .Values.standby.enabled }} | ||
| repoName: {{ required "repoName must be set when enabling standby mode." .Values.standby.repoName }} | ||
| repoName: {{ .Values.standby.repoName }} | 
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.
should be more flexible (with lease code):
| repoName: {{ .Values.standby.repoName }} | |
| {{- with .Values.standby }} | |
| standby: | |
| {{ toYaml . | nindent 4 }} | |
| {{- end }} | 
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.
More flexible, but the actual resource definition accepts only certain values anyway, and with so few values this seems to be an acceptable number of lines of code.
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.
@dajeffers This looks great! We just need two small adjustments to merge.
…g more realistic values for host and port.
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.
Looks great, thanks!
…runchyData#185) * Adding capability to stream off of a primary due to feature addition in PGOv5.3, removing requirement to specify a repo when standby is enabled. * Removing outdated comment about required standby values and specifying more realistic values for host and port. * Changing port value to an integer Issue: [sc-17928]
…185) * Adding capability to stream off of a primary due to feature addition in PGOv5.3, removing requirement to specify a repo when standby is enabled. * Removing outdated comment about required standby values and specifying more realistic values for host and port. * Changing port value to an integer Issue: [sc-17928]
…runchyData#185) * Adding capability to stream off of a primary due to feature addition in PGOv5.3, removing requirement to specify a repo when standby is enabled. * Removing outdated comment about required standby values and specifying more realistic values for host and port. * Changing port value to an integer Issue: [sc-17928]
…runchyData#185) * Adding capability to stream off of a primary due to feature addition in PGOv5.3, removing requirement to specify a repo when standby is enabled. * Removing outdated comment about required standby values and specifying more realistic values for host and port. * Changing port value to an integer Issue: [sc-17928]
Since the operator now supports standby clusters with streaming replication, support for this ought to be built into the postgres Helm chart.