summaryrefslogtreecommitdiff
path: root/pkg/domain/entities/pods.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-07-16 07:53:43 -0400
committerGitHub <noreply@github.com>2021-07-16 07:53:43 -0400
commitce28dc3c4c3dba468ddb6f2a249c0c4bfc058805 (patch)
tree0f16371ff56a8323db480d010b0315e600c2a50b /pkg/domain/entities/pods.go
parent3ba9f2a205787135b4e34e4d217df3ab9d0071b8 (diff)
parentaf40dfc2bf614aeb4191916cc2420068696eb776 (diff)
downloadpodman-ce28dc3c4c3dba468ddb6f2a249c0c4bfc058805.tar.gz
podman-ce28dc3c4c3dba468ddb6f2a249c0c4bfc058805.tar.bz2
podman-ce28dc3c4c3dba468ddb6f2a249c0c4bfc058805.zip
Merge pull request #10820 from jvanz/indfra-container-name-issue-10794
--infra-name command line argument
Diffstat (limited to 'pkg/domain/entities/pods.go')
-rw-r--r--pkg/domain/entities/pods.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/domain/entities/pods.go b/pkg/domain/entities/pods.go
index a0a2a1790..68e335f8d 100644
--- a/pkg/domain/entities/pods.go
+++ b/pkg/domain/entities/pods.go
@@ -112,6 +112,7 @@ type PodCreateOptions struct {
Hostname string
Infra bool
InfraImage string
+ InfraName string
InfraCommand string
InfraConmonPidFile string
Labels map[string]string
@@ -172,6 +173,7 @@ func (p *PodCreateOptions) ToPodSpecGen(s *specgen.PodSpecGenerator) error {
s.InfraConmonPidFile = p.InfraConmonPidFile
}
s.InfraImage = p.InfraImage
+ s.InfraName = p.InfraName
s.SharedNamespaces = p.Share
s.PodCreateCommand = p.CreateCommand