Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
6a509c0e
Unverified
Commit
6a509c0e
authored
3 years ago
by
James Rasell
Browse files
Options
Download
Email Patches
Plain Diff
taskrunner: add clarifying initial vault token renew comment.
parent
c46c530a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/allocrunner/taskrunner/vault_hook.go
+10
-1
client/allocrunner/taskrunner/vault_hook.go
with
10 additions
and
1 deletion
+10
-1
client/allocrunner/taskrunner/vault_hook.go
+
10
-
1
View file @
6a509c0e
...
...
@@ -216,7 +216,16 @@ OUTER:
}
}
// Start the renewal process
// Start the renewal process.
//
// This is the initial renew of the token which we derived from the
// server. The client does not know how long it took for the token to
// be generated and derived and also wants to gain control of the
// process quickly, but not too quickly. We therefore use a hardcoded
// increment value of 30; this value without a suffix is in seconds.
//
// If Vault is having availability issues or is overloaded, a large
// number of initial token renews can exacerbate the problem.
renewCh
,
err
:=
h
.
client
.
RenewToken
(
token
,
30
)
// An error returned means the token is not being renewed
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help