automation-tests/pkg/specgen/generate
cdoern 94df701512 Implement Podman Container Clone
podman container clone takes the id of an existing continer and creates a specgen from the given container's config
recreating all proper namespaces and overriding spec options like resource limits and the container name if given in the cli options

this command utilizes the common function DefineCreateFlags meaning that we can funnel as many create options as we want
into clone over time allowing the user to clone with as much or as little of the original config as they want.

container clone takes a second argument which is a new name and a third argument which is an image name to use instead of the original container's

the current supported flags are:

--destroy (remove the original container)
--name (new ctr name)
--cpus (sets cpu period and quota)
--cpuset-cpus
--cpu-period
--cpu-rt-period
--cpu-rt-runtime
--cpu-shares
--cpuset-mems
--memory
--run

resolves #10875

Signed-off-by: cdoern <cdoern@redhat.com>
Signed-off-by: cdoern <cbdoer23@g.holycross.edu>
Signed-off-by: cdoern <cdoern@redhat.com>
2022-02-20 21:11:14 -05:00
..
kube play kube envVar.valueFrom.resourceFieldRef 2022-02-02 22:34:54 +02:00
config_linux.go rootless: drop permission check for devices 2022-01-27 09:35:02 +01:00
config_linux_cgo.go bump go module to version 4 2022-01-18 12:47:07 +01:00
config_linux_nocgo.go bump go module to version 4 2022-01-18 12:47:07 +01:00
config_linux_test.go Add filepath glob support to --security-opt unmask 2021-05-04 14:40:43 -04:00
container.go Implement Podman Container Clone 2022-02-20 21:11:14 -05:00
container_create.go Implement Podman Container Clone 2022-02-20 21:11:14 -05:00
namespaces.go Podman pod create --share-parent vs --share=cgroup 2022-02-03 09:30:17 -05:00
oci.go Implement Podman Container Clone 2022-02-20 21:11:14 -05:00
pod_create.go Implement Podman Container Clone 2022-02-20 21:11:14 -05:00
ports.go bump go module to version 4 2022-01-18 12:47:07 +01:00
ports_bench_test.go use libnetwork from c/common 2022-01-12 17:07:30 +01:00
ports_test.go use libnetwork from c/common 2022-01-12 17:07:30 +01:00
security.go pkg/specgen/generate/security: fix error message 2022-01-24 13:24:37 -08:00
storage.go bump go module to version 4 2022-01-18 12:47:07 +01:00
validate.go bump go module to version 4 2022-01-18 12:47:07 +01:00