Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Commit 90d143a

Browse files
author
Esteban Barrios
committed
Test branch
1 parent e556b35 commit 90d143a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

command/deploy.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type DeployCommand struct {
2121
// Help provides the help information for the deploy command.
2222
func (c *DeployCommand) Help() string {
2323
helpText := `
24-
Usage: levant deploy [options] [TEMPLATE]
24+
Usage: levant deploy [options] [TEMPLATE] [ESTEBAN]
2525
2626
Deploy a Nomad job based on input templates and variable files. The deploy
2727
command supports passing variables individually on the command line. Multiple
@@ -65,6 +65,10 @@ General Options:
6565
can be changed using this flag so that Levant will exit cleanly ensuring CD
6666
pipelines don't fail when no changes are detected.
6767
68+
69+
-vault-token=<vault-token>
70+
The vault token used to deploy the application to nomad with vault support
71+
6872
-log-level=<level>
6973
Specify the verbosity level of Levant's logs. Valid values include DEBUG,
7074
INFO, and WARN, in decreasing order of verbosity. The default is INFO.
@@ -76,7 +80,7 @@ General Options:
7680
-var-file=<file>
7781
Used in conjunction with the -job-file will deploy a templated job to your
7882
Nomad cluster. You can repeat this flag multiple times to supply multiple var-files.
79-
[default: levant.(json|yaml|yml|tf)]
83+
[default: levant.(json|yaml|yml|tf)]
8084
`
8185
return strings.TrimSpace(helpText)
8286
}
@@ -111,6 +115,7 @@ func (c *DeployCommand) Run(args []string) int {
111115
flags.BoolVar(&config.Plan.IgnoreNoChanges, "ignore-no-changes", false, "")
112116
flags.StringVar(&level, "log-level", "INFO", "")
113117
flags.StringVar(&format, "log-format", "HUMAN", "")
118+
flags.StringVar(&config.Deploy.VaultToken, "vault-token", "")
114119
flags.Var((*helper.FlagStringSlice)(&config.Template.VariableFiles), "var-file", "")
115120

116121
if err = flags.Parse(args); err != nil {

0 commit comments

Comments
 (0)