Skip to content

Commit

Permalink
add nodename as container env
Browse files Browse the repository at this point in the history
  • Loading branch information
timfeirg committed Jan 26, 2017
1 parent ba0c27d commit b2deaf0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cluster/calcium/create_container.go
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ func (c *calcium) makeContainerOptions(quota map[string]int, specs types.Specs,
env := append(opts.Env, fmt.Sprintf("APP_NAME=%s", specs.Appname))
env = append(env, fmt.Sprintf("ERU_POD=%s", opts.Podname))
env = append(env, fmt.Sprintf("ERU_NODE_IP=%s", nodeIP))
env = append(env, fmt.Sprintf("ERU_NODE_NAME=%s", opts.Nodename))
env = append(env, fmt.Sprintf("ERU_ZONE=%s", c.config.Zone))

// mount paths
Expand Down

0 comments on commit b2deaf0

Please sign in to comment.