Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chart/templates/pgbouncer/pgbouncer-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ metadata:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
replicas: 1
replicas: {{ .Values.pgbouncer.replicas }}
{{- if $revisionHistoryLimit }}
revisionHistoryLimit: {{ $revisionHistoryLimit }}
{{- end }}
Expand Down
6 changes: 6 additions & 0 deletions chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4148,6 +4148,12 @@
"x-docsSection": "Common",
"default": false
},
"replicas": {
"description": "Number of pgbouncer pods to deploy",
"type": "integer",
"x-docsSection": "PgBouncer",
"default": 1,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"default": 1,
"default": 1

Static checks and tests are failing. I believe this extra , could be the reason making it an invalid json.

},
"revisionHistoryLimit": {
"description": "Number of old replicasets to retain.",
"type": [
Expand Down
2 changes: 2 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1372,6 +1372,8 @@ statsd:
pgbouncer:
# Enable PgBouncer
enabled: false
# Number of pgbouncer pods to deploy
replicas: 1
# Max number of old replicasets to retain
revisionHistoryLimit: ~
# Command to use for PgBouncer(templated).
Expand Down