spiegel_podman/cmd/podman/common
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
..
build.go Fixes for vendoring Buildah 2024-10-02 18:38:38 +02:00
completion.go Add "create" and "remove" events for secrets. 2025-02-28 16:58:06 +01:00
completion_test.go update golangci-lint to v1.62.0 2024-11-11 14:21:17 +01:00
create.go Add --env and --unsetenv to podman update. 2025-03-21 13:15:44 +01:00
create_opts.go Add --health-max-log-count, --health-max-log-size, --health-log-destination flags 2024-09-25 14:01:35 +02:00
create_test.go Switch all calls of assert.Nil to assert.NoError 2025-01-15 07:08:27 -05:00
default.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
inspect.go make podman pod inspect output a json array 2024-02-05 17:26:55 +01:00
netflags.go Add --no-hostname option 2025-01-15 06:51:32 -05:00
registries.go shell completion: respect CONTAINERS_REGISTRIES_CONF 2024-12-17 16:29:40 +01:00
sign.go Bump Go module to v5 2024-02-08 09:35:39 -05:00