Skip to content
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

pkg/overlay: cleanups #5927

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

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

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]>
@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. No New Tests Allow PR to proceed without adding regression tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants