diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-12-24 16:58:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-24 16:58:49 +0100 |
commit | b176c62e237538d9a3ac9626f424d888a06336ed (patch) | |
tree | d65c22aed0d0215f2d3f124a7082095c09dd6712 /pkg/domain/infra | |
parent | 231c528a4db9d312bd43b2ce15017e734349a12f (diff) | |
parent | 8566a5330b8a023797190a9f0c3989b8610dee43 (diff) | |
download | podman-b176c62e237538d9a3ac9626f424d888a06336ed.tar.gz podman-b176c62e237538d9a3ac9626f424d888a06336ed.tar.bz2 podman-b176c62e237538d9a3ac9626f424d888a06336ed.zip |
Merge pull request #8824 from bziemons/refactor-kube-to-spec-gen
Refactor kube.ToSpecGen parameters to struct
Diffstat (limited to 'pkg/domain/infra')
-rw-r--r-- | pkg/domain/infra/abi/play.go | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/pkg/domain/infra/abi/play.go b/pkg/domain/infra/abi/play.go index 4135e8882..cbc74a2f2 100644 --- a/pkg/domain/infra/abi/play.go +++ b/pkg/domain/infra/abi/play.go @@ -226,7 +226,19 @@ func (ic *ContainerEngine) playKubePod(ctx context.Context, podName string, podY return nil, err } - specGen, err := kube.ToSpecGen(ctx, container, container.Image, newImage, volumes, pod.ID(), podName, podInfraID, configMaps, seccompPaths, ctrRestartPolicy, p.NetNS.IsHost()) + specgenOpts := kube.CtrSpecGenOptions{ + Container: container, + Image: newImage, + Volumes: volumes, + PodID: pod.ID(), + PodName: podName, + PodInfraID: podInfraID, + ConfigMaps: configMaps, + SeccompPaths: seccompPaths, + RestartPolicy: ctrRestartPolicy, + NetNSIsHost: p.NetNS.IsHost(), + } + specGen, err := kube.ToSpecGen(ctx, &specgenOpts) if err != nil { return nil, err } |