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

fix: use podman machine inspect to know if machine is rootful #7024

Merged
merged 2 commits into from
Apr 30, 2024

Conversation

benoitf
Copy link
Collaborator

@benoitf benoitf commented Apr 30, 2024

What does this PR do?

in the past, the flag was not exposed so we had to parse some configuration files, but now we should rely on the podman machine inspect command to know if it's rootful or rootless

Screenshot / video of UI

What issues does this PR fix or reference?

fixes #7000

How to test this PR?

use test case of the linked issue

  • Tests are covering the bug fix or the new feature

in the past, the flag was not exposed so we had to parse some
configuration files, but now we should rely on the
`podman machine inspect` command to know if it's rootful or
rootless

fixes containers#7000
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
@benoitf benoitf requested a review from a team as a code owner April 30, 2024 12:34
@benoitf benoitf requested review from cdrage and feloy and removed request for a team April 30, 2024 12:34
@odockal odockal self-requested a review April 30, 2024 13:06
Copy link
Contributor

@feloy feloy left a comment

Choose a reason for hiding this comment

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

Fixes the problem on mac M3 with podman 5.0.2

extensions/podman/src/extension.spec.ts Outdated Show resolved Hide resolved
extensions/podman/src/extension.spec.ts Outdated Show resolved Hide resolved
extensions/podman/src/extension.ts Outdated Show resolved Hide resolved
Co-authored-by: Philippe Martin <feloy1@gmail.com>
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
@odockal
Copy link
Contributor

odockal commented Apr 30, 2024

LGTM. Tested with 5.0.2 and 4.9.4.

Copy link
Contributor

@odockal odockal left a comment

Choose a reason for hiding this comment

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

Approving

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switching default podman connection via Podman Desktop always uses rootless connection
4 participants