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

improve machine error when running on Linux #53

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

vrothberg
Copy link
Collaborator

On Linux, Podman Desktop can talk to the Podman socket of the host and to the ones of the Linux VM. As outlinted in #42, talking to socket of the host's Podman is currently not supported by the extension. While logging into the container registry is perfectly fine, running subscriptio-manager is not; it requires root privileges to install and run it. So instead of a silent error, throw a user-visible error indicating that it's currently not supported on a Linux host.

Fixes: #42

@vrothberg vrothberg requested a review from a team as a code owner February 16, 2024 12:03
@vrothberg
Copy link
Collaborator Author

image

Copy link
Collaborator

@benoitf benoitf 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 would expect tests but it seems there is currently only one unit test in the repository

@dgolovin probably need to add more tests so contributors can plug to existing unit tests, extend them. Here it might be difficult to setup the full logic when you're just contributing

src/extension.ts Show resolved Hide resolved
On Linux, Podman Desktop can talk to the Podman socket of the host and
to the ones of the Linux VM.  As outlinted in redhat-developer#42, talking to socket of
the host's Podman is currently not supported by the extension.  While
logging into the container registry is perfectly fine, running
subscriptio-manager is not; it requires root privileges to install and
run it.  So instead of a silent error, throw a user-visible error
indicating that it's currently not supported on a Linux host.

Fixes: redhat-developer#42
Signed-off-by: Valentin Rothberg <[email protected]>
@vrothberg vrothberg force-pushed the hackathon-subscription branch from 1c6fa85 to 12692fd Compare February 16, 2024 13:59
@vrothberg
Copy link
Collaborator Author

Can we get this in?

@benoitf
Copy link
Collaborator

benoitf commented Feb 26, 2024

@vrothberg I think you can merge, 1 week without any other remark and one approval :-)

@vrothberg vrothberg merged commit 0736811 into redhat-developer:main Feb 26, 2024
3 checks passed
@vrothberg vrothberg deleted the hackathon-subscription branch February 26, 2024 10:13
@vrothberg vrothberg self-assigned this Feb 28, 2024
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.

Linux support or warning regarding functionality
2 participants