Merge pull request #3818 from chenzhiwei/hostname

Set Pod hostname as Pod name
This commit is contained in:
OpenShift Merge Robot
2019-08-15 18:44:39 +02:00
committed by GitHub

View File

@ -30,6 +30,9 @@ func (r *Runtime) makeInfraContainer(ctx context.Context, p *Pod, imgName, imgID
return nil, err return nil, err
} }
// Set Pod hostname as Pod name
g.Config.Hostname = p.config.Name
isRootless := rootless.IsRootless() isRootless := rootless.IsRootless()
entryCmd := []string{r.config.InfraCommand} entryCmd := []string{r.config.InfraCommand}