Skip to content

Conversation

@aaron-ang
Copy link

@aaron-ang aaron-ang commented Jun 17, 2025

Fixes: #26381

Does this PR introduce a user-facing change?

Added `--ulimit` flag to `podman update` allowing users to edit container ulimits.

@openshift-ci openshift-ci bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note labels Jun 17, 2025
@github-actions github-actions bot added the kind/api-change Change to remote API; merits scrutiny label Jun 17, 2025
@packit-as-a-service
Copy link

[NON-BLOCKING] Packit jobs failed. @containers/packit-build please check. Everyone else, feel free to ignore.

2 similar comments
@packit-as-a-service
Copy link

[NON-BLOCKING] Packit jobs failed. @containers/packit-build please check. Everyone else, feel free to ignore.

@packit-as-a-service
Copy link

[NON-BLOCKING] Packit jobs failed. @containers/packit-build please check. Everyone else, feel free to ignore.

@Honny1
Copy link
Member

Honny1 commented Jun 17, 2025

Hi, I did a quick code check. And you need to move this definition of the ulimit flag to this if statement.

@Luap99
Copy link
Member

Luap99 commented Jun 17, 2025

The commit needs a sign off, see https://github.com/containers/podman/blob/main/CONTRIBUTING.md#sign-your-prs

Also please add the Fixes: #xxx line to your commit message as well.

@aaron-ang aaron-ang force-pushed the update-ulimit branch 2 times, most recently from 22d4ec1 to 81fe400 Compare June 17, 2025 18:20
@aaron-ang aaron-ang marked this pull request as ready for review June 17, 2025 18:23
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 17, 2025
@aaron-ang
Copy link
Author

What is the merge workflow for this project? Should I always squash my commits into a single commit?

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

Does this work correctly with --ulimit host on update? AFAICT it should unset all limts from the spec but the parser sets it to nil which means the update code considers it unset? I think the code likely needs to pass an explicit empty slice in that case?

@Luap99
Copy link
Member

Luap99 commented Jun 18, 2025

What is the merge workflow for this project? Should I always squash my commits into a single commit?

For a small feature like this yes. In general commits must be logical units and we prefer code, test and docs to be part of the same commit. However if you do some slight refactoring or fix multiple things than they should be in separate commits.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 25, 2025
@aaron-ang aaron-ang force-pushed the update-ulimit branch 2 times, most recently from e03b8f4 to 32aa965 Compare July 6, 2025 03:22
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 6, 2025
@aaron-ang aaron-ang marked this pull request as draft July 6, 2025 03:23
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 6, 2025
@aaron-ang aaron-ang force-pushed the update-ulimit branch 4 times, most recently from 4daaf4b to cf33218 Compare November 16, 2025 06:27
@aaron-ang aaron-ang requested a review from Honny1 November 16, 2025 07:19
@aaron-ang aaron-ang force-pushed the update-ulimit branch 3 times, most recently from 63f34be to 6735519 Compare November 19, 2025 03:44
Copy link
Member

@Honny1 Honny1 left a comment

Choose a reason for hiding this comment

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

The linter is failing. Please rebase to main to ensure the recent linter updates are applied to your changes.

@aaron-ang aaron-ang force-pushed the update-ulimit branch 5 times, most recently from b8c16a5 to e016879 Compare November 19, 2025 18:46
@aaron-ang
Copy link
Author

@Honny1 seems like the failures are unrelated?

@Honny1
Copy link
Member

Honny1 commented Nov 20, 2025

Yes, it looks like that. I reran the tests.


if err := decoder.Decode(&query, r.URL.Query()); err != nil {
utils.Error(w, http.StatusBadRequest, fmt.Errorf("failed to parse parameters for %s: %w", r.URL.String(), err))
utils.BadRequest(w, "restartPolicy", query.RestartPolicy, err)
Copy link
Member

Choose a reason for hiding this comment

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

I’m not sure about this. At first glance it makes sense, but looking deeper, I am not sure about the query.RestartPolicy value. Will it be an empty string when parsing fails, or something else?

Copy link
Author

Choose a reason for hiding this comment

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

good point, I've reverted the changes.

Copy link
Member

@Honny1 Honny1 left a comment

Choose a reason for hiding this comment

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

LGTM,

I'm not sure why this PR ended up with the governance and machine labels.

cc @Luap99, @baude for final review and merge.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 24, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aaron-ang, Honny1

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 Nov 24, 2025
@aaron-ang aaron-ang requested review from Luap99 and baude December 1, 2025 20:21
@aaron-ang
Copy link
Author

aaron-ang commented Dec 16, 2025

hi @Luap99 @baude could you please take a look?

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. governance kind/api-change Change to remote API; merits scrutiny machine release-note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFE: Add ulimits to podman update

6 participants