mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-19 10:28:24 +02:00
Added ability to set context in charts.yaml (#21)
* Added ability to set context in charts.yaml * Added context to the documentation Added error if —kube-context and context are both used.
This commit is contained in:
@@ -225,7 +225,13 @@ func before(c *cli.Context) (*state.HelmState, helmexec.Interface, error) {
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
if state.Context != "" {
|
||||
if kubeContext != "" {
|
||||
log.Printf("err: Cannot use option --kube-context and set attribute context.")
|
||||
os.Exit(1)
|
||||
}
|
||||
kubeContext = state.Context
|
||||
}
|
||||
var writer io.Writer
|
||||
if !quiet {
|
||||
writer = os.Stdout
|
||||
|
||||
Reference in New Issue
Block a user