mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
cli: correctly use and validate job with vault token set
This PR fixes `job validate` to respect '-vault-token', '$VAULT_TOKEN', '-vault-namespace' if set.
This commit is contained in:
14
command/testdata/example-vault.nomad
vendored
Normal file
14
command/testdata/example-vault.nomad
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
job "vault" {
|
||||
datacenters = ["dc1"]
|
||||
group "group" {
|
||||
task "task" {
|
||||
driver = "docker"
|
||||
config {
|
||||
image = "alpine:latest"
|
||||
}
|
||||
vault {
|
||||
policies = ["my-policy"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user