-
Notifications
You must be signed in to change notification settings - Fork 853
Introduce CommitResults(), add --metadata-file #6442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Ephemeral COPR build failed. @containers/packit-build please check. |
|
Quick breeze review looks good, but all kinds of red unhappiness in the tests. |
Rename the Executor and StageExecutor types to make them private to the package. Exporting them wasn't required for them to supply an interface that they implemented for use by github.com/openshift/imagebuilder, and we're about to change the signature for StageExecutor.Execute(). Signed-off-by: Nalin Dahyabhai <[email protected]>
Add a CommitResults() method which returns a structure on success, changing Commit() into a wrapper for it which returns a subset of the data to keep its signature stable. Signed-off-by: Nalin Dahyabhai <[email protected]>
Add a MetadataFile field to BuildOptions, to which we write a dictionary of information about a just-committed image. Pay more attention to sourceDateEpoch than to timestamp when we're tagging an existing image with the intended destination name. Signed-off-by: Nalin Dahyabhai <[email protected]>
flouthoc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flouthoc, nalind The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
TomSweeneyRedHat
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
/lgtm |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Add a CommitResults() method that returns a structure with information, to make it easier to extend.
Use it to add a
--metadata-fileflag tobuildah commitandbuildah build.How to verify it
New and updated integration tests!
Which issue(s) this PR fixes:
Fixes #6428.
Special notes for your reviewer:
Does this PR introduce a user-facing change?