Skip to content

Commit

Permalink
[bitnami/postgresql-ha] setting ServiceAccount also when is not creat…
Browse files Browse the repository at this point in the history
…ed by the bitnami chart (#31293)

* [chart/postgresql-ha]

setting ServiceAccount also when is not created by the bitnami chart

Signed-off-by: Giulio Calzolari <[email protected]>

---------

Signed-off-by: Giulio Calzolari <[email protected]>
Signed-off-by: Bitnami Containers <[email protected]>
Co-authored-by: Bitnami Containers <[email protected]>
  • Loading branch information
giuliocalzolari and bitnami-bot authored Jan 13, 2025
1 parent 364ac45 commit 2316c35
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
8 changes: 6 additions & 2 deletions bitnami/postgresql-ha/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## 15.1.4 (2024-12-23)
## 15.1.5 (2025-01-10)

* [bitnami/postgresql-ha] Release 15.1.4 ([#31144](https://github.com/bitnami/charts/pull/31144))
* [bitnami/postgresql-ha] setting ServiceAccount also when is not created by the bitnami chart ([#31293](https://github.com/bitnami/charts/pull/31293))

## <small>15.1.4 (2024-12-23)</small>

* [bitnami/postgresql-ha] Release 15.1.4 (#31144) ([6a0ca8f](https://github.com/bitnami/charts/commit/6a0ca8f0d148a69e005f39bb2bef839ac8fb35ad)), closes [#31144](https://github.com/bitnami/charts/issues/31144)

## <small>15.1.3 (2024-12-23)</small>

Expand Down
2 changes: 1 addition & 1 deletion bitnami/postgresql-ha/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ maintainers:
name: postgresql-ha
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/postgresql-ha
version: 15.1.4
version: 15.1.5
2 changes: 0 additions & 2 deletions bitnami/postgresql-ha/templates/pgpool/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ spec:
{{- if .Values.pgpool.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ .Values.pgpool.terminationGracePeriodSeconds }}
{{- end }}
{{- if .Values.serviceAccount.create }}
serviceAccountName: {{ include "postgresql-ha.serviceAccountName" . }}
{{- end }}
{{- if or .Values.pgpool.tls.enabled .Values.pgpool.initContainers }}
initContainers:
{{- if .Values.pgpool.tls.enabled }}
Expand Down
2 changes: 0 additions & 2 deletions bitnami/postgresql-ha/templates/postgresql/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ spec:
{{- if .Values.postgresql.podSecurityContext.enabled }}
securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.postgresql.podSecurityContext "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.serviceAccount.create }}
serviceAccountName: {{ include "postgresql-ha.serviceAccountName" . }}
{{- end }}
hostNetwork: {{ .Values.postgresql.hostNetwork }}
hostIPC: {{ .Values.postgresql.hostIPC }}
{{- if or .Values.postgresql.tls.enabled .Values.postgresql.initContainers .Values.postgresql.extraInitContainers (and .Values.volumePermissions.enabled (or (or (not (empty .Values.postgresql.extendedConf)) (not (empty .Values.postgresql.extendedConfCM))) .Values.persistence.enabled)) }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ spec:
{{- if .Values.witness.podSecurityContext.enabled }}
securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.witness.podSecurityContext "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.serviceAccount.create }}
serviceAccountName: {{ include "postgresql-ha.serviceAccountName" . }}
{{- end }}
hostNetwork: {{ .Values.witness.hostNetwork }}
hostIPC: {{ .Values.witness.hostIPC }}
initContainers:
Expand Down

0 comments on commit 2316c35

Please sign in to comment.