From 8a5a143bad43e211ba0b8377ce08807b62378232 Mon Sep 17 00:00:00 2001 From: Grachev Mikhail Date: Fri, 1 Nov 2019 11:23:24 +0300 Subject: [PATCH] [bitnami/postgresql] Fix error when running init-container (#18447) Error: failed to create containerd task: OCI runtime create failed: container_linux.go:337: starting container process caused "exec: \"sh\": executable file not found in $PATH": unknown Signed-off-by: Mikhail Grachev --- stable/postgresql/Chart.yaml | 2 +- stable/postgresql/templates/statefulset-slaves.yaml | 6 +++--- stable/postgresql/templates/statefulset.yaml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/stable/postgresql/Chart.yaml b/stable/postgresql/Chart.yaml index 17fd7bf8cf..2622e92a6c 100644 --- a/stable/postgresql/Chart.yaml +++ b/stable/postgresql/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: postgresql -version: 6.5.4 +version: 6.5.5 appVersion: 11.5.0 description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. keywords: diff --git a/stable/postgresql/templates/statefulset-slaves.yaml b/stable/postgresql/templates/statefulset-slaves.yaml index 9a985623e9..de796ccaf5 100644 --- a/stable/postgresql/templates/statefulset-slaves.yaml +++ b/stable/postgresql/templates/statefulset-slaves.yaml @@ -75,7 +75,7 @@ spec: resources: {{- toYaml .Values.resources | nindent 12 }} {{- end }} command: - - sh + - /bin/sh - -c - | mkdir -p {{ .Values.persistence.mountPath }}/data @@ -148,7 +148,7 @@ spec: livenessProbe: exec: command: - - sh + - /bin/sh - -c {{- if (include "postgresql.database" .) }} - exec pg_isready -U {{ include "postgresql.username" . | quote }} -d {{ (include "postgresql.database" .) | quote }} -h 127.0.0.1 -p {{ template "postgresql.port" . }} @@ -165,7 +165,7 @@ spec: readinessProbe: exec: command: - - sh + - /bin/sh - -c - -e {{- include "postgresql.readinessProbeCommand" . | nindent 16 }} diff --git a/stable/postgresql/templates/statefulset.yaml b/stable/postgresql/templates/statefulset.yaml index bbf9190e6d..fd30356cfb 100644 --- a/stable/postgresql/templates/statefulset.yaml +++ b/stable/postgresql/templates/statefulset.yaml @@ -79,7 +79,7 @@ spec: resources: {{- toYaml .Values.resources | nindent 12 }} {{- end }} command: - - sh + - /bin/sh - -c - | mkdir -p {{ .Values.persistence.mountPath }}/data @@ -173,7 +173,7 @@ spec: livenessProbe: exec: command: - - sh + - /bin/sh - -c {{- if (include "postgresql.database" .) }} - exec pg_isready -U {{ include "postgresql.username" . | quote }} -d {{ (include "postgresql.database" .) | quote }} -h 127.0.0.1 -p {{ template "postgresql.port" . }} @@ -190,7 +190,7 @@ spec: readinessProbe: exec: command: - - sh + - /bin/sh - -c - -e {{- include "postgresql.readinessProbeCommand" . | nindent 16 }}