Skip to content

pkg/overlay: cleanups #5927

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

Merged
merged 1 commit into from
Jan 25, 2025
Merged

Conversation

nalind
Copy link
Member

@nalind nalind commented Jan 20, 2025

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Change generateOverlayStructure() to not return its first argument unchanged, since both of its callers already have that value, and adjust a few error messages.

In the Linux MountWithOptions(), ensure that, if UpperDirOptionFragment and WorkDirOptionFragment values were specified, they are absolute paths, otherwise place them under the top-level parent of the various directories we have for this mount.

Update a number of comments.

How to verify it

No functional changes.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

I had so much trouble understanding how to use this package, maybe this will make it easier for the next person, who might be me.

Does this PR introduce a user-facing change?

None

@openshift-ci openshift-ci bot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. approved labels Jan 20, 2025
@nalind nalind added the No New Tests Allow PR to proceed without adding regression tests label Jan 20, 2025
Copy link
Collaborator

@flouthoc flouthoc left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

openshift-ci bot commented Jan 21, 2025

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Change generateOverlayStructure() to not return its first argument
unchanged, since both of its callers already have that value, and adjust
a few error messages.

In the Linux MountWithOptions(), ensure that, if UpperDirOptionFragment
and WorkDirOptionFragment values were specified, they are absolute
paths, otherwise place them under the top-level parent of the various
directories we have for this mount.

Update a number of comments.

Signed-off-by: Nalin Dahyabhai <[email protected]>
@rhatdan
Copy link
Member

rhatdan commented Jan 25, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jan 25, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 92015b7 into containers:main Jan 25, 2025
32 checks passed
@nalind nalind deleted the overlay-cleanups branch February 3, 2025 14:37
@stale-locking-app stale-locking-app bot locked as resolved and limited conversation to collaborators May 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm locked - please file new issue/PR No New Tests Allow PR to proceed without adding regression tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants