spiegel_podman/pkg/api/handlers/libpod
Jan Kaluza 701aade262 Add --env and --unsetenv to podman update.
The --env is used to add new environment variable to container or
override the existing one. The --unsetenv is used to remove
the environment variable.

It is done by sharing "env" and "unsetenv" flags between both
"update" and "create" commands and later handling these flags
in the "update" command handler.

The list of environment variables to add/remove is stored
in newly added variables in the ContainerUpdateOptions.

The Container.Update API call is refactored to take
the ContainerUpdateOptions as an input to limit the number of its
arguments.

The Env and UnsetEnv lists are later handled using the envLib
package and the Container is updated.

The remote API is also extended to handle Env and EnvUnset.

Fixes: #24875

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
2025-03-21 13:15:44 +01:00
..
containers.go Add --env and --unsetenv to podman update. 2025-03-21 13:15:44 +01:00
containers_create.go Fix HealthCheck log destination, count, and size defaults 2025-03-12 21:27:00 +01:00
containers_stats.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
generate.go Remove containers/common/pkg/config from pkg/util 2024-09-06 07:45:04 -04:00
healthcheck.go Add stopped status for HealthCheck 2025-03-03 17:09:30 +01:00
images.go Add podman manifest rm --ignore 2025-01-22 11:43:47 -05:00
images_pull.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_push.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
info.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
kube.go Add --no-hostname option 2025-01-15 06:51:32 -05:00
kube_test.go feat(libpod): support kube play tar content-type (#24015) 2024-09-27 15:40:55 +02:00
manifests.go Add type and annotations to artifact add 2025-01-31 09:53:03 -06:00
networks.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
play.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
pods.go do not set the CreateCommand for API users 2025-01-22 19:13:08 +01:00
secrets.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
swagger_spec.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
system.go Clean up after unexpectedly terminated build 2025-01-27 14:21:27 +01:00
volumes.go volume ls: fix race that caused it to fail 2024-11-06 12:28:52 +01:00