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

build: validate volumes on backend #4792

Merged
merged 1 commit into from
May 16, 2023

Conversation

flouthoc
Copy link
Collaborator

Validate build volumes on backend and not on frontend

Closes: containers/podman#17139

[NO NEW TESTS NEEDED]
Exisiting volumes checks must pass. ( Tests might need retrofit in error message )

What type of PR is this?

/kind api-change
/kind bug
/kind cleanup
/kind deprecation
/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake
/kind other

What this PR does / why we need it:

How to verify it

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?

build: validate volumes on backend

Validate build volumes on backend and not on frontend

Closes: containers/podman#17139

[NO NEW TESTS NEEDED]
Exisiting volumes checks must pass. ( Tests might need retrofit in error
message )

Signed-off-by: Aditya R <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 15, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flouthoc

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

@flouthoc
Copy link
Collaborator Author

@rhatdan
Copy link
Member

rhatdan commented May 15, 2023

LGTM
@giuseppe @vrothberg @umohnani8 PTAL

@@ -154,9 +154,6 @@ func CommonBuildOptionsFromFlagSet(flags *pflag.FlagSet, findFlagFunc func(name
return nil, fmt.Errorf("invalid --shm-size: %w", err)
}
volumes, _ := flags.GetStringArray("volume")
if err := Volumes(volumes); err != nil {
return nil, err
}
Copy link
Member

Choose a reason for hiding this comment

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

This function is called in Podman in cmd/podman/images/build. go. Will the lack of this call mess something up there? It might be good to do a vendor from your sandbox and spin up a PR on Podman to verify for sure.

However, if @nalind or @giuseppe have a differing opinion, go with their thinking.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Created a PR to test this on CI containers/podman#18579

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@TomSweeneyRedHat Podman PR passes.

@umohnani8
Copy link
Member

LGTM

@rhatdan
Copy link
Member

rhatdan commented May 16, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm label May 16, 2023
@rhatdan rhatdan merged commit e430950 into containers:main May 16, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Volumes are resolved on client side on build but vm side on run on macOS
4 participants