-
Notifications
You must be signed in to change notification settings - Fork 280
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
feat: add user mode networking parameter for Podman machine #3251
Conversation
should we display the parameter only if the version is supported ? |
I would love to :) |
You might want to do the same for "rootful" (which appeared in v4.1.0) |
extensions/podman/src/extension.ts
Outdated
@@ -106,6 +110,7 @@ async function updateMachines(provider: extensionApi.Provider): Promise<void> { | |||
memory: parseInt(machine.Memory), | |||
cpus: machine.CPUs, | |||
diskSize: parseInt(machine.DiskSize), | |||
userModeNetworking: isWindows() ? machine.UserModeNetworking : true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should have the isWindows
outside the set.
ex:
const userModeNetworking : isWindows() ? machine.UserModeNetworking : true
and then add the param to the set
extensions/podman/src/extension.ts
Outdated
@@ -899,11 +911,18 @@ export async function deactivate(): Promise<void> { | |||
}); | |||
} | |||
|
|||
const PODMAN_MINIMUM_VERSION_FOR_USER_MODE_NETWORKING = '4.6.0'; | |||
|
|||
function isUserModeNetworkingSupported(podmanVersion: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should add comments that this is windows only. maybe we should specific the function name that it's windows related since that's the only one that supports it.
Fixes containers#2865 Signed-off-by: Jeff MAURY <jmaury@redhat.com>
…be exposed Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on a Windows VM
installed first Podman 4.5.0
Option is not displayed
Then click on 'Update to 4.6.0' button of Podman
Successfully installed
But then it doesn't show the option
and then restarted Podman Desktop
This time I got the flag
I think we should add a markdown description explaining that it's useful for VPN/DNS issues
And/Or add a pointer to https://docs.podman.io/en/latest/markdown/podman-machine-init.1.html#user-mode-networking
or just copy some part of the text either in a new section with "markdown" type or enrich the description because 'User network mode" won't be understood by people if it's just a toggle
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
|
I'll test but probably you need to update the body/description of the PR and the screencast as it's no longer using the warning box |
fixes containers#3251 Signed-off-by: Florent Benoit <fbenoit@redhat.com>
fixes containers#3251 Signed-off-by: Florent Benoit <fbenoit@redhat.com>
fixes containers#3251 Signed-off-by: Florent Benoit <fbenoit@redhat.com>
fixes containers#3251 Signed-off-by: Florent Benoit <fbenoit@redhat.com>
fixes containers#3251 Signed-off-by: Florent Benoit <fbenoit@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did the workflow 4.5.1 -> 4.6.0 and everything worked
NFFDdBbx1d.mp4
good job @jeffmaury 🚀 |
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
@cdrage can you review as your request changes prevent to merge |
Fixes #2865
What does this PR do?
Add a new parameter user-mode-networking when creating Podman machine. This parameter will be accessible only on Windows and for Podman 4.6.0
Screenshot/screencast of this PR
What issues does this PR fix or reference?
Fixes #2865
How to test this PR?
Create a Podman machine and set the new parameter