Skip to content

Commit

Permalink
Merge 9d8a7dd into backport/task-update-nomad-token/currently-warm-kit
Browse files Browse the repository at this point in the history
  • Loading branch information
hc-github-team-nomad-core committed Feb 27, 2023
2 parents 3b95da1 + 9d8a7dd commit 4ad9064
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/16266.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
template: Fixed a bug where the template runner's Nomad token would be erased by in-place updates to a task
```
1 change: 1 addition & 0 deletions client/allocrunner/taskrunner/task_runner_hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ func (tr *TaskRunner) updateHooks() {

// Build the request
req := interfaces.TaskUpdateRequest{
NomadToken: tr.getNomadToken(),
VaultToken: tr.getVaultToken(),
Alloc: alloc,
TaskEnv: tr.envBuilder.Build(),
Expand Down

0 comments on commit 4ad9064

Please sign in to comment.