Merge pull request #898 from Random-Liu/revert-#895
Revert "Add HOSTNAME to env by default for pod containers"
This commit is contained in:
commit
9cd964f62b
@ -342,8 +342,6 @@ func (c *criService) generateContainerSpec(id string, sandboxID string, sandboxP
|
||||
for _, e := range config.GetEnvs() {
|
||||
g.AddProcessEnv(e.GetKey(), e.GetValue())
|
||||
}
|
||||
// add the HOSTNAME variable to the environment to match Docker runtime default
|
||||
g.AddProcessEnv("HOSTNAME", sandboxConfig.GetHostname())
|
||||
|
||||
securityContext := config.GetLinux().GetSecurityContext()
|
||||
selinuxOpt := securityContext.GetSelinuxOptions()
|
||||
|
Loading…
Reference in New Issue
Block a user