Skip to content

[v4.9.1-rhel] RHEL-14922: accept a config blob alongside the "changes" slice when committing#21547

Merged
openshift-merge-bot[bot] merged 3 commits intocontainers:v4.9.1-rhelfrom
openshift-cherrypick-robot:cherry-pick-20657-to-v4.9.1-rhel
Feb 7, 2024
Merged

[v4.9.1-rhel] RHEL-14922: accept a config blob alongside the "changes" slice when committing#21547
openshift-merge-bot[bot] merged 3 commits intocontainers:v4.9.1-rhelfrom
openshift-cherrypick-robot:cherry-pick-20657-to-v4.9.1-rhel

Conversation

@openshift-cherrypick-robot
Copy link
Copy Markdown
Collaborator

This is an automated cherry-pick of #20657

/assign nalind

`podman container commit` now features a `--config` option which accepts a filename containing a JSON-encoded container configuration to be merged in to the newly-created image.

…tting

Use ParseUserNamespace instead of ParseNamespace to parse a passed-in
user namespace setting.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
When committing containers to create new images, accept a container
config blob being passed in the body of the API request by adding a
Config field to our API structures.  Populate it from the body of
requests that we receive, and use its contents as the body of requests
that we make.

Make the libpod commit endpoint split changes values at newlines, just
like the compat endpoint does.

Pass both the config blob and the "changes" slice to buildah's Commit()
API, so that it can handle cases where they overlap or conflict.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Be specific that the `-v` flag only affects RUN instructions.  The
previous wording left it ambiguous, and people might have concluded that
it applied to ADD and COPY as well.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
@packit-as-a-service
Copy link
Copy Markdown

Cockpit tests failed for commit e9b9356. @martinpitt, @jelly, @mvollmer please check.

@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Feb 7, 2024

/approve
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 7, 2024
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Feb 7, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: openshift-cherrypick-robot, rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 7, 2024
@openshift-merge-bot openshift-merge-bot bot merged this pull request into containers:v4.9.1-rhel Feb 7, 2024
@stale-locking-app stale-locking-app bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label May 8, 2024
@stale-locking-app stale-locking-app bot locked as resolved and limited conversation to collaborators May 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/api-change Change to remote API; merits scrutiny lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants