Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1358 from hashicorp/b/nomad/set-default-namespace
Browse files Browse the repository at this point in the history
plugin/nomad: Ensure Namespace is set if not set by user
  • Loading branch information
briancain authored Apr 19, 2021
2 parents 13986b6 + b13995a commit 0a9cb7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builtin/nomad/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ func (p *Platform) Deploy(
},
},
}

if p.config.Namespace == "" {
p.config.Namespace = "default"
}
job.Namespace = &p.config.Namespace
job.AddTaskGroup(tg)
tg.AddTask(&api.Task{
Expand Down

0 comments on commit 0a9cb7a

Please sign in to comment.