Skip to content

Various exporter refactoring fixes#3465

Merged
jedevc merged 3 commits intomoby:masterfrom
jedevc:exporter-fixups
May 30, 2023
Merged

Various exporter refactoring fixes#3465
jedevc merged 3 commits intomoby:masterfrom
jedevc:exporter-fixups

Conversation

@jedevc
Copy link
Copy Markdown
Member

@jedevc jedevc commented Jan 6, 2023

Pulled out the various exporter fixups from #3403, since we won't merge new attestation options for now.

@jedevc jedevc requested a review from tonistiigi January 6, 2023 15:09
@jedevc jedevc force-pushed the exporter-fixups branch from 98c5d0e to 81074e2 Compare May 23, 2023 11:03
@jedevc
Copy link
Copy Markdown
Member Author

jedevc commented May 23, 2023

@tonistiigi had a glance through this, these fixups still apply I think.

It's just about refactoring some various little bits in the local and tar exporter, to make the style more similar to the containerimage exporters, and removing some unused option from the tar exporter.

Not something we need, but we might as well take it for the milestone ❤️

@jedevc jedevc added this to the v0.12.0 milestone May 23, 2023
@jedevc jedevc requested a review from crazy-max May 23, 2023 11:04
Comment thread exporter/local/export.go Outdated
if err != nil {
return nil, err
}
_ = opt
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be cleaned up

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased, and cleaned up.

jedevc added 3 commits May 30, 2023 09:28
Signed-off-by: Justin Chadwell <me@jedevc.com>
This allows one implementation for all the opts parsing, similar to how
we do today for the ImageCommitOpts.

Signed-off-by: Justin Chadwell <me@jedevc.com>
This option looks like a mistake added in 45fc3ed.
These options aren't ever used, so we don't need to parse them, we can
just silently discard them.

Signed-off-by: Justin Chadwell <me@jedevc.com>
@jedevc jedevc force-pushed the exporter-fixups branch from 81074e2 to 9ba004c Compare May 30, 2023 08:29
@jedevc jedevc merged commit 268225c into moby:master May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants