spiegel_podman/pkg/machine
Paul Holzinger f218f8430a
machine: implement http proxy logic for all providers
Copy all proxy envs into the VM on each start, this allows for updates
without having to recrate the VM. This is implemented via shell script
that is passed via ssh to the VM after it is started.

With that we now use the same logic for all providers the old fw_cfg
logic for qemu has been removed and the WSL code as well which keeps the
behavior the same.

There is a small risk now because we only update the env via ssh that
processes started before will have the old incorrect env but it should
really only effect core system processes which likely do not need them
anyway. The podman system service should not be started at this point
so it should be good enough.

It also fixes the broken behavior with SSL_CERT_FILE/SSL_CERT_DIR which
were updated on each start which is not correct as the files are only
copied with ignition so these should not be updated and just set
statically when the VM was created.

e2e test has been added to ensure the behavior works as expected.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-22 11:23:45 +01:00
..
applehv Extract waitForGvProxy into shared utility function 2024-02-19 18:00:00 +02:00
compression zstd now default compression for podman machine 2024-02-20 14:26:41 -06:00
connection pkg/machine: make only one AddConnection() call 2024-02-16 14:58:17 +01:00
define zstd now default compression for podman machine 2024-02-20 14:26:41 -06:00
e2e machine: implement http proxy logic for all providers 2024-02-22 11:23:45 +01:00
hyperv Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
ignition machine: implement http proxy logic for all providers 2024-02-22 11:23:45 +01:00
lock podman5 machine reconfig 1 2024-02-07 08:17:43 -06:00
ocipull zstd now default compression for podman machine 2024-02-20 14:26:41 -06:00
os Bump Go module to v5 2024-02-08 09:35:39 -05:00
provider wsl - wip 2024-02-11 12:58:11 -06:00
proxyenv machine: implement http proxy logic for all providers 2024-02-22 11:23:45 +01:00
qemu machine: implement http proxy logic for all providers 2024-02-22 11:23:45 +01:00
shim machine: implement http proxy logic for all providers 2024-02-22 11:23:45 +01:00
sockets Extract waitForGvProxy into shared utility function 2024-02-19 18:00:00 +02:00
stdpull wsl - wip 2024-02-11 12:58:11 -06:00
vmconfigs Merge pull request #21735 from jakecorrenti/inspect-conn-vals 2024-02-22 02:36:50 +00:00
wsl machine: implement http proxy logic for all providers 2024-02-22 11:23:45 +01:00
cleanup.go Machine: Teardown on init failure 2023-10-12 09:26:06 -04:00
config.go Merge pull request #21735 from jakecorrenti/inspect-conn-vals 2024-02-22 02:36:50 +00:00
config_test.go pkg/machine: cleanup MakeSSHURL 2024-02-16 14:41:14 +01:00
fedora_unix.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
fedora_windows.go Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
gvproxy.go Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
gvproxy_unix.go Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
gvproxy_windows.go Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
keys.go Use single persistent ssh key for all machines 2024-01-04 23:47:49 -05:00
machine_common.go Complete WSL implementation, refactor a few areas 2024-02-11 12:58:11 -06:00
machine_unix.go Complete WSL implementation, refactor a few areas 2024-02-11 12:58:11 -06:00
machine_unsupported.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
machine_windows.go Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
options_darwin.go podman5 machine reconfig 1 2024-02-07 08:17:43 -06:00
options_freebsd.go podman5 machine reconfig 1 2024-02-07 08:17:43 -06:00
options_linux.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
options_windows.go podman5 machine reconfig 1 2024-02-07 08:17:43 -06:00
ports.go Implement automatic port reassignment on Windows 2023-08-21 07:23:31 -05:00
ports_unix.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
ports_windows.go Implement automatic port reassignment on Windows 2023-08-21 07:23:31 -05:00
pull.go Prune FCOS related code 2024-02-15 21:05:17 -06:00
qemuprovider.go podman5 machine reconfig 1 2024-02-07 08:17:43 -06:00
ssh.go machine: implement http proxy logic for all providers 2024-02-22 11:23:45 +01:00
ssh_unix.go machine: implement http proxy logic for all providers 2024-02-22 11:23:45 +01:00
ssh_windows.go machine: implement http proxy logic for all providers 2024-02-22 11:23:45 +01:00
update.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
volumes.go Bump Go module to v5 2024-02-08 09:35:39 -05:00