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

Implement container.update() #521

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

inknos
Copy link
Contributor

@inknos inknos commented Feb 24, 2025

No description provided.

Copy link
Contributor

openshift-ci bot commented Feb 24, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: inknos

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

@inknos inknos force-pushed the implement-update-healthcheck branch from 1e31f57 to a089e2b Compare February 26, 2025 13:48
@inknos inknos changed the title [wip] Implement container.update() Implement container.update() Feb 26, 2025
@inknos inknos marked this pull request as ready for review February 26, 2025 13:48
@inknos inknos force-pushed the implement-update-healthcheck branch 4 times, most recently from 0ad0dce to eea8603 Compare February 26, 2025 16:02
@inknos
Copy link
Contributor Author

inknos commented Feb 26, 2025

note for myself of tomorrow. fedora 40 and 41 are failing because podman-5.4.0 is not there (check tmt-verbose.log). the ci needs pull podman from podman-next copr in order to test against latest upstream fixes.

@inknos inknos force-pushed the implement-update-healthcheck branch 6 times, most recently from bf80d76 to 63e62c4 Compare February 27, 2025 12:16
Introduce container.update() api implementation. The options supported
are a direct port to GO's structures, therefore, some of the options
like blkio, need to follow a specific syntax and have to use
dictionaries with GO case style.

See for example blockio = {
                        "leafWeight": 0
                        "throttleReadBpsDevice": [{
                            "major": 0,
                            "minor": 0,
                            "rate": 0
                        }], ...

Other common options, like health_cmd, health_interval,... follow pythonic
implementations and python-like type calls.

Fixes: https://issues.redhat.com/browse/RUN-2427

Signed-off-by: Nicola Sella <nsella@redhat.com>
Looks like tests for all python require more time to run. This can be
improved in the future by splitting each python run in a separate test,
and, therefore, be run in parallel

Signed-off-by: Nicola Sella <nsella@redhat.com>
@inknos inknos force-pushed the implement-update-healthcheck branch from 63e62c4 to 0cd044e Compare February 27, 2025 13:10
Signed-off-by: Nicola Sella <nsella@redhat.com>
@inknos inknos force-pushed the implement-update-healthcheck branch from 0cd044e to 7beb75b Compare February 28, 2025 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant