summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-06-16 20:05:27 +0000
committerGitHub <noreply@github.com>2022-06-16 20:05:27 +0000
commit2af8851787d2c34d6264945372deaec4c387882a (patch)
tree29d25cc8cd50f804a36fa9f3d98032d5333757fb /libpod
parent5cba4dc2e490b5c652ba0821067b63d7b2e4cf8f (diff)
parent958759a71955860b01b17bd3bebf38f9dae1018e (diff)
downloadpodman-2af8851787d2c34d6264945372deaec4c387882a.tar.gz
podman-2af8851787d2c34d6264945372deaec4c387882a.tar.bz2
podman-2af8851787d2c34d6264945372deaec4c387882a.zip
Merge pull request #14299 from cdoern/podClone
implement podman pod clone
Diffstat (limited to 'libpod')
-rw-r--r--libpod/pod.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/libpod/pod.go b/libpod/pod.go
index 108317637..2502c41a9 100644
--- a/libpod/pod.go
+++ b/libpod/pod.go
@@ -450,3 +450,14 @@ func (p *Pod) initContainers() ([]*Container, error) {
}
return initCons, nil
}
+
+func (p *Pod) Config() (*PodConfig, error) {
+ p.lock.Lock()
+ defer p.lock.Unlock()
+
+ conf := &PodConfig{}
+
+ err := JSONDeepCopy(p.config, conf)
+
+ return conf, err
+}