feat: add HELMFILE_DISABLE_VALS env var to skip vals processing (#2471)

Signed-off-by: Jim Robinson <1643772+jimmyR@users.noreply.github.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
Co-authored-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
jimmyR
2026-09-13 15:40:12 +08:00
committed by GitHub
co-authored by yxxhero
parent 0d6f3ab160
commit bc0c103d79
6 changed files with 516 additions and 22 deletions
+1 -8
View File
@@ -4,8 +4,6 @@ import (
"fmt"
"sync"
"github.com/helmfile/vals"
"github.com/helmfile/helmfile/pkg/plugins"
)
@@ -42,13 +40,8 @@ func fetchSecretValues(values map[string]any) (map[string]any, error) {
var err error
// below lines are for tests
once.Do(func() {
var valRuntime *vals.Runtime
if secretsClient == nil {
valRuntime, err = plugins.ValsInstance()
if err != nil {
return
}
secretsClient = valRuntime
secretsClient, err = plugins.ValsInstance()
}
})
if secretsClient == nil {