From 87bed1417fed7821d9aabef5648b86cd129d7fc3 Mon Sep 17 00:00:00 2001 From: Pat Litke Date: Fri, 28 Jan 2022 14:51:08 -0500 Subject: [PATCH] Update readme (#1897) Describes work-around for #1803 - add an example of how to work around issues encountered out of the box when trying to pass build-args that contain spaces in their values --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 9798d9e40..5996ae825 100644 --- a/README.md +++ b/README.md @@ -655,6 +655,15 @@ To collect and publish the image's build information using the Jenkins Artifacto This flag allows you to pass in ARG values at build time, similarly to Docker. You can set it multiple times for multiple arguments. +Note that passing values that contain spaces is not natively suppored - you need to ensure that the IFS is set to null before your executor command. +You can set this by adding `export IFS=''` before your executor call. +See the following example + +```bash +export IFS='' +/kaniko/executor --build-arg "MY_VAR='value with spaces'" ... +``` + #### --cache Set this flag as `--cache=true` to opt into caching with kaniko.