diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-09-29 13:26:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-29 13:26:03 -0400 |
commit | 4b9cd9201b97c4ef4c6ef50d53f35757f1ddb187 (patch) | |
tree | c8e69e7090cb658564474fa295ea0c0a28d2521e /libpod/kube.go | |
parent | a22a9a5218774ba809a60a650f10ff300551faa5 (diff) | |
parent | ccff77025c4ef6907c91c42cf84e1c92b65716ba (diff) | |
download | podman-4b9cd9201b97c4ef4c6ef50d53f35757f1ddb187.tar.gz podman-4b9cd9201b97c4ef4c6ef50d53f35757f1ddb187.tar.bz2 podman-4b9cd9201b97c4ef4c6ef50d53f35757f1ddb187.zip |
Merge pull request #11781 from vrothberg/spec
podman run - avoid calls to JSONDeepCopy
Diffstat (limited to 'libpod/kube.go')
-rw-r--r-- | libpod/kube.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/kube.go b/libpod/kube.go index 69c90c233..57d99f3ef 100644 --- a/libpod/kube.go +++ b/libpod/kube.go @@ -426,7 +426,7 @@ func containerToV1Container(ctx context.Context, c *Container) (v1.Container, [] // NOTE: a privileged container mounts all of /dev/*. if !c.Privileged() && len(c.config.Spec.Linux.Devices) > 0 { // TODO Enable when we can support devices and their names - kubeContainer.VolumeDevices = generateKubeVolumeDeviceFromLinuxDevice(c.Spec().Linux.Devices) + kubeContainer.VolumeDevices = generateKubeVolumeDeviceFromLinuxDevice(c.config.Spec.Linux.Devices) return kubeContainer, kubeVolumes, nil, errors.Wrapf(define.ErrNotImplemented, "linux devices") } |