Skip to content

Commit

Permalink
Add Commands fields in Entrypoint (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwinger233 authored Apr 19, 2021
1 parent 598dcf6 commit 8729267
Show file tree
Hide file tree
Showing 5 changed files with 546 additions and 524 deletions.
3 changes: 1 addition & 2 deletions cluster/calcium/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,7 @@ func (c *Calcium) doMakeWorkloadOptions(no int, msg *types.CreateWorkloadMessage
msg.WorkloadName = config.Name
// command and user
// extra args is dynamically
slices := utils.MakeCommandLineArgs(fmt.Sprintf("%s %s", entry.Command, opts.ExtraArgs))
config.Cmd = slices
config.Cmd = opts.Entrypoint.Commands
// env
env := append(opts.Env, fmt.Sprintf("APP_NAME=%s", opts.Name))
env = append(env, fmt.Sprintf("ERU_POD=%s", opts.Podname))
Expand Down
Loading

0 comments on commit 8729267

Please sign in to comment.