From 8c89f85147e99ff7db4fd1b37a2f690ca65f3fca Mon Sep 17 00:00:00 2001 From: cdoern Date: Fri, 4 Jun 2021 14:36:15 -0400 Subject: [PATCH] fixed comments Signed-off-by: cdoern --- common/libimage/import.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/common/libimage/import.go b/common/libimage/import.go index 4cce4c9ca4..2addfdf987 100644 --- a/common/libimage/import.go +++ b/common/libimage/import.go @@ -23,6 +23,10 @@ type ImportOptions struct { CommitMessage string // Tag the imported image with this value. Tag string + // Overwrite OS of imported image. + OS string + // Overwrite Arch of imported image. + Arch string } // Import imports a custom tarball at the specified path. Returns the name of @@ -48,8 +52,10 @@ func (r *Runtime) Import(ctx context.Context, path string, options *ImportOption } config := v1.Image{ - Config: ic, - History: hist, + Config: ic, + History: hist, + OS: options.OS, + Architecture: options.Arch, } u, err := url.ParseRequestURI(path)