mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-19 10:01:35 +02:00
Add --kubeconfig flag (#1381)
add kubeconfig flag Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
@@ -37,6 +37,8 @@ type GlobalOptions struct {
|
||||
DisableForceUpdate bool
|
||||
// Quiet is true if the output should be quiet.
|
||||
Quiet bool
|
||||
// Kubeconfig is the path to the kubeconfig file to use.
|
||||
Kubeconfig string
|
||||
// KubeContext is the name of the kubectl context to use.
|
||||
KubeContext string
|
||||
// Debug is true if the output should be verbose.
|
||||
@@ -104,6 +106,11 @@ func (g *GlobalImpl) KustomizeBinary() string {
|
||||
return g.GlobalOptions.KustomizeBinary
|
||||
}
|
||||
|
||||
// Kubeconfig returns the path to the kubeconfig file to use.
|
||||
func (g *GlobalImpl) Kubeconfig() string {
|
||||
return g.GlobalOptions.Kubeconfig
|
||||
}
|
||||
|
||||
// KubeContext returns the name of the kubectl context to use.
|
||||
func (g *GlobalImpl) KubeContext() string {
|
||||
return g.GlobalOptions.KubeContext
|
||||
|
||||
Reference in New Issue
Block a user