kaniko/pkg
Priya Wadhwa 5d2d2829d0 Review config for cmd/entrypoint after building a stage
As mentioned in #346, if only ENTRYPOINT is set in a stage then any
CMD inherited from a parent should be cleared.

If both entrypoint and cmd are set then nothing should change.

I added a function and unit test to review the config file after building a stage
which clears out config.Cmd if ENTRYPOINT was declared but CMD wasn't.

I also added an integration test to make sure this works, which should
be tested by the preexisting container-diff --metadata test.
2018-09-10 18:15:51 -07:00
..
buildcontext Enable shared config for s3 2018-08-23 20:53:43 +10:00
commands Fix linting error 2018-09-04 13:50:57 -07:00
config Merge branch 'master' of github.com:GoogleContainerTools/kaniko into stages 2018-08-30 16:17:44 -07:00
constants Set default home value (#281) 2018-08-10 12:58:07 -07:00
dockerfile Added a KanikoStage type for each stage of a Dockerfile 2018-08-27 14:15:04 -07:00
executor Review config for cmd/entrypoint after building a stage 2018-09-10 18:15:51 -07:00
image dep update go-containerregistry 2018-06-03 00:59:34 +00:00
snapshot Separate snapshotting of parent dirs from files 2018-08-24 16:34:59 -07:00
util Merge pull request #320 from priyawadhwa/stages 2018-09-07 16:19:40 -07:00
version Set a user-agent for registry pushes. (#87) 2018-04-13 14:25:58 -07:00