Skip to content

Commit f00c7d7

Browse files
committed
Fix #9572: Deployment of helm chart crashing with operation not permitted
The root cause appears to be that the base image has moved the location of python from /usr/bin/ to /usr/local/bin/. This prevented the workaround done by the init containers copying out the binary with the users permissions from working.
1 parent c45502d commit f00c7d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/helm/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ spec:
131131
mountPath: /pgadmin4/config_distro.py
132132
subPath: config_distro.py
133133
- name: empty-dir
134-
mountPath: /usr/bin/python3
134+
mountPath: /usr/local/bin/python3
135135
subPath: python3
136136
- name: empty-dir
137137
mountPath: /tmp
@@ -205,7 +205,7 @@ spec:
205205
image: {{ template "pgadmin4.image" . }}
206206
imagePullPolicy: {{ .Values.image.pullPolicy }}
207207
command: ["sh", "-x", "-c"]
208-
args: ['ls /usr/bin/python3.* | sort -V -r | head -n 1 | xargs -i cp {} python3']
208+
args: ['ls /venv/bin/python3.* | sort -V -r | head -n 1 | xargs -i cp {} python3']
209209
workingDir: /emptyDir
210210
volumeMounts:
211211
- name: empty-dir

0 commit comments

Comments
 (0)