Skip to content

Commit

Permalink
Merge pull request #1082 from replicatedhq/divolgin/airgap
Browse files Browse the repository at this point in the history
Images are in the images folder
  • Loading branch information
divolgin committed Sep 10, 2020
2 parents 7d0c586 + 8281aa0 commit 8d56ea5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions pkg/rewrite/rewrite.go
Expand Up @@ -321,11 +321,3 @@ func Rewrite(rewriteOptions RewriteOptions) error {

return nil
}

func imagesDirFromOptions(upstream *upstreamtypes.Upstream, rewriteOptions RewriteOptions) string {
if rewriteOptions.CreateAppDir {
return filepath.Join(rewriteOptions.RootDir, upstream.Name, "images")
}

return filepath.Join(rewriteOptions.RootDir, "images")
}
2 changes: 1 addition & 1 deletion pkg/upstream/push_images.go
Expand Up @@ -31,7 +31,7 @@ func TagAndPushUpstreamImages(u *types.Upstream, options PushUpstreamImageOption
ProgressWriter: options.ReportWriter,
LogForUI: true,
}
images, err := kotsadm.TagAndPushAppImages(options.RootDir, pushOpts)
images, err := kotsadm.TagAndPushAppImages(options.ImagesDir, pushOpts)
if err != nil {
return nil, errors.Wrap(err, "failed to push images")
}
Expand Down

0 comments on commit 8d56ea5

Please sign in to comment.