Skip to content

Commit

Permalink
Fix Stackgres PostgreSQL version (0.113) (#9313)
Browse files Browse the repository at this point in the history
Cherry pick of #9312 to `release/0.113`

* Change `stackgres.postgresVersion` from latest `16` to `16.2`
* Fix `priorityClassName` in SGShardedDbOps
* Fix SGPostgresConfig to use major version from `stackgres.postgresVersion`

Signed-off-by: Steven Sheehy <[email protected]>
  • Loading branch information
steven-sheehy authored Sep 9, 2024
1 parent 7db85a8 commit 909cfc9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ metadata:
namespace: {{ include "hedera-mirror.namespace" . }}
spec:
postgresql.conf: {{ tpl (toYaml .Values.stackgres.coordinator.config) . | nindent 4 }}
postgresVersion: {{ .Values.stackgres.postgresVersion | quote }}
postgresVersion: {{ mustRegexReplaceAll "^(\\d+)(\\.\\d+)+" .Values.stackgres.postgresVersion "${1}" | quote }}
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ metadata:
namespace: {{ include "hedera-mirror.namespace" . }}
spec:
postgresql.conf: {{ tpl (toYaml .Values.stackgres.worker.config) . | nindent 4 }}
postgresVersion: {{ .Values.stackgres.postgresVersion | quote }}
postgresVersion: {{ mustRegexReplaceAll "^(\\d+)(\\.\\d+)+" .Values.stackgres.postgresVersion "${1}" | quote }}
{{- end -}}
2 changes: 1 addition & 1 deletion charts/hedera-mirror/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ stackgres:
version: "1.6"
nameOverride: citus
podAntiAffinity: true
postgresVersion: 16
postgresVersion: "16.2"
worker:
config:
autovacuum_max_workers: "2"
Expand Down
3 changes: 2 additions & 1 deletion docs/runbook/stackgres-upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ After successful deployment of the upgraded Stackgres Helm chart, we need to per
spec:
maxRetries: 1
op: securityUpgrade
priorityClassName: critical
scheduling:
priorityClassName: critical
securityUpgrade:
method: InPlace
sgShardedCluster: mirror-citus
Expand Down

0 comments on commit 909cfc9

Please sign in to comment.