Skip to content

Conversation

@dajeffers
Copy link
Contributor

Since the operator now supports standby clusters with streaming replication, support for this ought to be built into the postgres Helm chart.

…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 }}

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):

Suggested change
repoName: {{ .Values.standby.repoName }}
{{- with .Values.standby }}
standby:
{{ toYaml . | nindent 4 }}
{{- end }}

Copy link
Contributor Author

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.

Copy link
Contributor

@tjmoore4 tjmoore4 left a 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.

Copy link
Contributor

@tjmoore4 tjmoore4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@tjmoore4 tjmoore4 merged commit af88ad9 into CrunchyData:main Feb 21, 2023
tjmoore4 pushed a commit to tjmoore4/postgres-operator-examples that referenced this pull request Feb 22, 2023
…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]
tjmoore4 pushed a commit that referenced this pull request Feb 23, 2023
…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]
tjmoore4 pushed a commit to tjmoore4/postgres-operator-examples that referenced this pull request Jul 17, 2023
…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]
tjmoore4 pushed a commit to tjmoore4/postgres-operator-examples that referenced this pull request Jul 17, 2023
…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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants