Skip to content

Commit 7ff5210

Browse files
committed
Move expected venv for Helm initContainer
1 parent fb904d3 commit 7ff5210

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

helm/blueapi/templates/statefulset.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ spec:
9494
blueapi -c /config/init_config.yaml setup-scratch
9595
if [ $? -ne 0 ]; then echo 'Blueapi failed'; exit 1; fi;
9696
echo "Exporting venv as artefact"
97-
cp -r /venv/* /artefacts
97+
cp -r /app/.venv/* /artefacts
9898
volumeMounts:
9999
- name: init-config
100100
mountPath: "/config"
@@ -149,7 +149,7 @@ spec:
149149
mountPropagation: HostToContainer
150150
{{- end }}
151151
- name: venv
152-
mountPath: /venv
152+
mountPath: /app/.venv
153153
{{- end }}
154154
{{- if ne 1000.0 .Values.securityContext.runAsUser }}
155155
- mountPath: /home

tests/unit_tests/test_helm_chart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def init_container_venv_volume_mount():
466466
def venv_volume_mount():
467467
return {
468468
"name": "venv",
469-
"mountPath": "/venv",
469+
"mountPath": "/app/.venv",
470470
}
471471

472472

0 commit comments

Comments
 (0)