Builds with Secrets in Openshift 3.9+ fail with the error "Error processing tar file(exit status 1): invalid symlink "/opt/app-root/src/..data"
Issue
Unable to execute builds with secrets as part of the configuration. Builds fail with the following error:
error: Uploading to container failed: Error response from daemon: Error processing tar file(exit status 1): invalid symlink "/opt/app-root/src/..data" -> "..2019_08_06_22_44_01.875817706"
ERROR: Error occurred during injecting "/var/run/secrets/openshift.io/build/secret" to "/opt/app-root/src": Error response from daemon: Error processing tar file(exit status 1): invalid symlink "/opt/app-root/src/..data" -> "..2019_08_06_22_44_01.875817706"
Environment
- Red Hat OpenShift Container Platform (OCP)
- 3.9+
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.