Skip to content

Commit

Permalink
Merge branch 'add-nodename-env' into 'master'
Browse files Browse the repository at this point in the history
add nodename as container env

See merge request !51
  • Loading branch information
timfeirg committed Jan 26, 2017
2 parents ba0c27d + b2deaf0 commit 0c328fe
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 0c328fe

Please sign in to comment.