Skip to content

Conversation

@pgvishnuram
Copy link
Contributor

@pgvishnuram pgvishnuram commented Nov 1, 2022

This change allows pgbouncer replicas to be configurable and removes hardcoding of values


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added the area:helm-chart Airflow Helm Chart label Nov 1, 2022
{{- end }}
spec:
replicas: 1
replicas: {{ .Values.pgbouncer.replicas }}
Copy link
Member

Choose a reason for hiding this comment

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

I understand that you have added the default value in the values.yaml file, but it may be good to have { ... | default 1} here too, so that it will still work in the expected way even if the values file is messed up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay let me add defaults in template

Copy link
Member

Choose a reason for hiding this comment

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

@XD-DENG, can you expand on "even if the values file is messed up" more? If the values file shipped with the chart is messed up, we are so far from having anything working that duplicating defaults around seems like extra noise to me. Am I missing something?

@pgvishnuram pgvishnuram marked this pull request as ready for review November 1, 2022 11:18
@pgvishnuram pgvishnuram requested review from XD-DENG and removed request for dstandish and jedcunningham November 1, 2022 14:59
pgvishnuram and others added 2 commits November 1, 2022 23:10
Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:helm-chart Airflow Helm Chart

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants