fix(os:cloud-image-uploader): set workingDir on container

The latest import failed due to "ERROR: Unable to create local
directories(/.ansible/tmp): [Errno 13] Permission denied: b'/.ansible'".
Which implies the code is being executed from `/`, despite the WORKDIR
variable being set in the container image--I suspect this is a quirk of
kube/openshift that was not expected.

This change sets the workingDir to /srv/cloud-uploader, as specified in
the Containerfile, which should resolve the execution error.

Signed-off-by: Neil Hanlon <neil@shrug.pw>
This commit is contained in:
Neil Hanlon 2024-04-19 12:35:21 -04:00 committed by kevin
parent 6ac1be1f3a
commit bafcded29e

View file

@ -33,6 +33,7 @@ spec:
- name: cloud-image-uploader
image: image-registry.openshift-image-registry.svc:5000/cloud-image-uploader/cloud-image-uploader:latest
imagePullPolicy: Always
workingDir: /srv/cloud-uploader/
env:
- name: AZURE_SECRET
valueFrom: