Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit eb3d3cf

Browse files
committed
Revert "Add HOSTNAME to env by default for pod containers"
This reverts commit 4c3e195. Signed-off-by: Lantao Liu <[email protected]>
1 parent db8500d commit eb3d3cf

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

pkg/server/container_create.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,6 @@ func (c *criService) generateContainerSpec(id string, sandboxID string, sandboxP
342342
for _, e := range config.GetEnvs() {
343343
g.AddProcessEnv(e.GetKey(), e.GetValue())
344344
}
345-
// add the HOSTNAME variable to the environment to match Docker runtime default
346-
g.AddProcessEnv("HOSTNAME", sandboxConfig.GetHostname())
347345

348346
securityContext := config.GetLinux().GetSecurityContext()
349347
selinuxOpt := securityContext.GetSelinuxOptions()

0 commit comments

Comments
 (0)