Skip to content

Remove autoscaling configuration from PostgreSQL chart - #14

Merged
dingp merged 2 commits into
dingpf/adding_postgresql_helm_chartfrom
copilot/sub-pr-13
Jan 17, 2026
Merged

Remove autoscaling configuration from PostgreSQL chart#14
dingp merged 2 commits into
dingpf/adding_postgresql_helm_chartfrom
copilot/sub-pr-13

Conversation

Copilot AI commented Jan 17, 2026

Copy link
Copy Markdown
Contributor

Horizontal pod autoscaling is incompatible with stateful databases like PostgreSQL. The previous implementation included autoscaling configuration that, while disabled by default, could be mistakenly enabled.

Changes

  • Removed autoscaling section from values_template.yaml
  • Deleted templates/hpa.yaml HorizontalPodAutoscaler template
  • Simplified templates/deployment.yaml to always set replicas from replicaCount

The chart now has no autoscaling capability, preventing misconfiguration of the stateful PostgreSQL deployment.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: dingp <9438483+dingp@users.noreply.github.com>
@dingp
dingp marked this pull request as ready for review January 17, 2026 23:41
Copilot AI review requested due to automatic review settings January 17, 2026 23:41
Copilot AI changed the title [WIP] Update PostgreSQL Helm chart implementation based on feedback Remove autoscaling configuration from PostgreSQL chart Jan 17, 2026
@dingp
dingp merged commit da6464d into dingpf/adding_postgresql_helm_chart Jan 17, 2026
2 checks passed
Copilot AI requested a review from dingp January 17, 2026 23:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR removes autoscaling functionality from the PostgreSQL Helm chart based on feedback. Autoscaling is not appropriate for stateful database deployments like PostgreSQL, which require careful manual scaling to maintain data integrity and consistency.

Changes:

  • Removed autoscaling configuration section from values template
  • Deleted HorizontalPodAutoscaler template file
  • Made replica count unconditional in deployment template

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
postgresql/values_template.yaml Removed autoscaling configuration block (lines 151-158) to simplify values
postgresql/templates/hpa.yaml Deleted entire HPA template file as autoscaling is not suitable for PostgreSQL
postgresql/templates/deployment.yaml Removed conditional logic around replicas field, making it always use the configured replicaCount

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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