prefix key added

This commit is contained in:
Ivan Pedrazas
2016-12-16 05:35:59 +00:00
parent cf76ca8ca9
commit 9c46e62c7f
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -73,6 +73,11 @@ func main() {
Usage: "add the secrets used in the values field",
EnvVar: "PLUGIN_SECRETS,SECRETS",
},
cli.StringSliceFlag{
Name: "prefix",
Usage: "Prefix for all the secrets",
EnvVar: "PLUGIN_PREFIX,PREFIX",
},
}
if err := app.Run(os.Args); err != nil {
logrus.Fatal(err)
@@ -96,6 +101,7 @@ func run(c *cli.Context) error {
Debug: c.Bool("debug"),
DryRun: c.Bool("dry-run"),
Secrets: c.StringSlice("secrets"),
Prefix: c.String("prefix"),
},
}
if plugin.Config.Debug {