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:
parent
6ac1be1f3a
commit
bafcded29e
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue