kaniko/pkg
Aris Buzachis 61312a95ae
fix(WORKDIR): use the config.User for the new dir permissions (#2269)
WORKDIR ignores the currently set USER and creates the new directories
with the root user ownership.

This changes that, by executing a chown after the mkdir if needed, and
also handle the case where the provided USER is an uid and the passwd
file is not available to resolve to the username.

Fixes #2259

Signed-off-by: Aris Buzachis <buzachis.aris@gmail.com>

Signed-off-by: Aris Buzachis <buzachis.aris@gmail.com>
2022-09-28 21:18:40 -04:00
..
buildcontext (fix):Pass full context to S3 context handler (#2221) 2022-09-08 13:08:51 -04:00
cache Provide `--cache-repo` as OCI image layout path (#2250) 2022-09-28 10:19:02 -04:00
commands fix(WORKDIR): use the config.User for the new dir permissions (#2269) 2022-09-28 21:18:40 -04:00
config Add the ability to skip unpacking the initial file system (#2234) 2022-09-06 10:21:12 -04:00
constants feat: kaniko dir config option (#1997) 2022-03-31 15:10:23 -04:00
creds Add GitLab CI credentials helper (#2040) 2022-04-11 13:13:47 -04:00
dockerfile feat: disable cache-copy-layers in multistage builds; closes 2065 (#2227) 2022-08-25 21:36:56 -04:00
executor Provide `--cache-repo` as OCI image layout path (#2250) 2022-09-28 10:19:02 -04:00
fakes refactor cache.Warm and add tests 2020-01-10 12:29:17 -08:00
filesystem chore: remove duplicate word in comments (#2232) 2022-08-30 06:02:39 -04:00
image feat: kaniko dir config option (#1997) 2022-03-31 15:10:23 -04:00
logging Add timestamp to logs 2020-04-23 13:40:47 +02:00
mocks/go-containerregistry/mockv1 rename mock pkg for lint 2020-01-17 14:59:14 -08:00
snapshot Write parent directories to tar before whiteout files (#2113) 2022-05-31 16:42:32 -04:00
timing Add a lot more timing data. (#518) 2019-01-10 13:27:55 -07:00
util fix(WORKDIR): use the config.User for the new dir permissions (#2269) 2022-09-28 21:18:40 -04:00
version Set a user-agent for registry pushes. (#87) 2018-04-13 14:25:58 -07:00