Renamed to --oci-layout-path and added a unit test.

This commit is contained in:
chhsia0
2019-08-24 01:28:58 -07:00
parent 7949d0de1d
commit 11f3b791cd
8 changed files with 485 additions and 6 deletions
+2 -2
View File
@@ -102,8 +102,8 @@ func DoPush(image v1.Image, opts *config.KanikoOptions) error {
}
}
if opts.LayoutPath != "" {
path, err := layout.Write(opts.LayoutPath, empty.Index)
if opts.OCILayoutPath != "" {
path, err := layout.Write(opts.OCILayoutPath, empty.Index)
if err != nil {
return errors.Wrap(err, "writing empty layout")
}