From 2f7d7dce791fc810149d1bffb9fab66408d31a00 Mon Sep 17 00:00:00 2001 From: Hayden James Date: Tue, 22 Feb 2022 08:07:46 -0500 Subject: [PATCH] Add hostIPC option for PostgreSQL StatefulSets (#9148) Signed-off-by: Hayden James --- bitnami/postgresql/Chart.yaml | 2 +- bitnami/postgresql/README.md | 2 ++ bitnami/postgresql/templates/primary/statefulset.yaml | 1 + bitnami/postgresql/templates/read/statefulset.yaml | 1 + bitnami/postgresql/values.yaml | 6 ++++++ 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/bitnami/postgresql/Chart.yaml b/bitnami/postgresql/Chart.yaml index 467912684e..55acd2c48b 100644 --- a/bitnami/postgresql/Chart.yaml +++ b/bitnami/postgresql/Chart.yaml @@ -26,4 +26,4 @@ name: postgresql sources: - https://github.com/bitnami/bitnami-docker-postgresql - https://www.postgresql.org/ -version: 11.0.8 +version: 11.1.0 diff --git a/bitnami/postgresql/README.md b/bitnami/postgresql/README.md index e678bb8c89..b80dd18baf 100644 --- a/bitnami/postgresql/README.md +++ b/bitnami/postgresql/README.md @@ -206,6 +206,7 @@ kubectl delete pvc -l release=my-release | `primary.containerSecurityContext.runAsUser` | User ID for the container | `1001` | | `primary.hostAliases` | PostgreSQL primary pods host aliases | `[]` | | `primary.hostNetwork` | Specify if host network should be enabled for PostgreSQL pod | `false` | +| `primary.hostIPC` | Specify if host IPC should be enabled for PostgreSQL pod | `false` | | `primary.labels` | Map of labels to add to the statefulset (postgresql primary) | `{}` | | `primary.annotations` | Annotations for PostgreSQL primary pods | `{}` | | `primary.podLabels` | Map of labels to add to the pods (postgresql primary) | `{}` | @@ -291,6 +292,7 @@ kubectl delete pvc -l release=my-release | `readReplicas.containerSecurityContext.runAsUser` | User ID for the container | `1001` | | `readReplicas.hostAliases` | PostgreSQL read only pods host aliases | `[]` | | `readReplicas.hostNetwork` | Specify if host network should be enabled for PostgreSQL pod | `false` | +| `readReplicas.hostIPC` | Specify if host IPC should be enabled for PostgreSQL pod | `false` | | `readReplicas.labels` | Map of labels to add to the statefulset (PostgreSQL read only) | `{}` | | `readReplicas.annotations` | Annotations for PostgreSQL read only pods | `{}` | | `readReplicas.podLabels` | Map of labels to add to the pods (PostgreSQL read only) | `{}` | diff --git a/bitnami/postgresql/templates/primary/statefulset.yaml b/bitnami/postgresql/templates/primary/statefulset.yaml index c3b4cefc03..09d133943d 100644 --- a/bitnami/postgresql/templates/primary/statefulset.yaml +++ b/bitnami/postgresql/templates/primary/statefulset.yaml @@ -88,6 +88,7 @@ spec: securityContext: {{- omit .Values.primary.podSecurityContext "enabled" | toYaml | nindent 8 }} {{- end }} hostNetwork: {{ .Values.primary.hostNetwork }} + hostIPC: {{ .Values.primary.hostIPC }} initContainers: {{- if and .Values.tls.enabled (not .Values.volumePermissions.enabled) }} - name: copy-certs diff --git a/bitnami/postgresql/templates/read/statefulset.yaml b/bitnami/postgresql/templates/read/statefulset.yaml index 14893bb3e1..2fbdf90e32 100644 --- a/bitnami/postgresql/templates/read/statefulset.yaml +++ b/bitnami/postgresql/templates/read/statefulset.yaml @@ -83,6 +83,7 @@ spec: securityContext: {{- omit .Values.readReplicas.podSecurityContext "enabled" | toYaml | nindent 8 }} {{- end }} hostNetwork: {{ .Values.readReplicas.hostNetwork }} + hostIPC: {{ .Values.readReplicas.hostIPC }} initContainers: {{- if and .Values.tls.enabled (not .Values.volumePermissions.enabled) }} - name: copy-certs diff --git a/bitnami/postgresql/values.yaml b/bitnami/postgresql/values.yaml index 0558ec593d..142d049ec5 100644 --- a/bitnami/postgresql/values.yaml +++ b/bitnami/postgresql/values.yaml @@ -445,6 +445,9 @@ primary: ## @param primary.hostNetwork Specify if host network should be enabled for PostgreSQL pod (postgresql primary) ## hostNetwork: false + ## @param primary.hostIPC Specify if host IPC should be enabled for PostgreSQL pod (postgresql primary) + ## + hostIPC: false ## @param primary.labels Map of labels to add to the statefulset (postgresql primary) ## labels: {} @@ -752,6 +755,9 @@ readReplicas: ## @param readReplicas.hostNetwork Specify if host network should be enabled for PostgreSQL pod (PostgreSQL read only) ## hostNetwork: false + ## @param readReplicas.hostIPC Specify if host IPC should be enabled for PostgreSQL pod (postgresql primary) + ## + hostIPC: false ## @param readReplicas.labels Map of labels to add to the statefulset (PostgreSQL read only) ## labels: {}