Skip to content

Support manifest embedding in user-app rpms & fixes#670

Merged
fzdarsky merged 2 commits intoopenshift:mainfrom
mangelajo:paack-manifests
Apr 29, 2022
Merged

Support manifest embedding in user-app rpms & fixes#670
fzdarsky merged 2 commits intoopenshift:mainfrom
mangelajo:paack-manifests

Conversation

@mangelajo
Copy link
Contributor

@mangelajo mangelajo commented Apr 27, 2022

First commit adds support for embedding application manifests
into the user-application containers for use with microshift/ostree

Second commit fixes uid/gid setup and file capabilities
rpm requires the file attribute uid/gid to be symbolic
and not numeric. Additionally tar didn't store the caps
but cpio doesn't keep those inside rpm either.
So we create a list of file caps during tar creation, and then
we populate the %files metadata with %caps attributes so those
are re-installed during rpm unpack.

This is tested and working.

@openshift-ci openshift-ci bot requested review from copejon and oglok April 27, 2022 17:14
This commit adds support for embedding application manifests
into the user-application containers for use with microshift/ostree
First, rpm requires the file attribute uid/gid to be symbolic
and not numeric. Additionally tar didn't store the caps
but cpio doesn't keep those inside rpm either.

So we create a list of file caps during tar creation, and then
we populate the %files metadata with %caps attributes so those
are re-installed during rpm unpack.

This is tested and working.
@mangelajo mangelajo changed the title Support manifest embedding in user-app rpms Support manifest embedding in user-app rpms & fixes Apr 29, 2022
@mangelajo mangelajo requested a review from fzdarsky April 29, 2022 15:59
@fzdarsky
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 29, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 29, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fzdarsky

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 Apr 29, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 29, 2022

@mangelajo: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-openshift-conformance-sig-storage 6e64f74 link false /test e2e-openshift-conformance-sig-storage

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@fzdarsky fzdarsky merged commit a90c081 into openshift:main Apr 29, 2022
@mangelajo mangelajo mentioned this pull request Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants