mirror of
https://github.com/ipedrazas/drone-helm.git
synced 2026-06-04 18:24:13 +08:00
added env var token
This commit is contained in:
@@ -101,7 +101,9 @@ func run(c *cli.Context) error {
|
||||
if plugin.Config.Debug {
|
||||
debug(&plugin)
|
||||
}
|
||||
|
||||
resolveSecrets(&plugin)
|
||||
|
||||
if plugin.Config.Debug {
|
||||
debug(&plugin)
|
||||
}
|
||||
|
||||
@@ -108,6 +108,7 @@ func resolveSecrets(p *Plugin) {
|
||||
envval := os.Getenv(secret)
|
||||
p.Config.Values = resolveEnvVar(p.Config.Values, secret, envval)
|
||||
p.Config.APIServer = resolveEnvVar(p.Config.APIServer, secret, envval)
|
||||
p.Config.Token = resolveEnvVar(p.Config.Token, secret, envval)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user