Skip to content

Commit

Permalink
fix(deploy): global encryption key (~/.werf/global_secret_key) ignored
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed Dec 3, 2024
1 parent 5bc910e commit 8e78762
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions cmd/werf/converge/converge.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,6 @@ func run(
logColorMode = action.LogColorMode(*commonCmdData.LogColorMode)
}

secrets_manager.WerfHomeDir = werf.GetHomeDir()

if err := action.Deploy(ctx, action.DeployOptions{
ChartDirPath: chartPath,
ChartRepositoryInsecure: *commonCmdData.InsecureHelmDependencies,
Expand Down
2 changes: 0 additions & 2 deletions cmd/werf/plan/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,6 @@ func run(
return fmt.Errorf("get user extra labels: %w", err)
}

secrets_manager.WerfHomeDir = werf.GetHomeDir()

if err := action.Plan(ctx, action.PlanOptions{
ChartDirPath: chartPath,
ChartRepositoryInsecure: *commonCmdData.InsecureHelmDependencies,
Expand Down
2 changes: 0 additions & 2 deletions cmd/werf/render/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,6 @@ func runRender(ctx context.Context, imageNameListFromArgs []string) error {
return fmt.Errorf("get user extra labels: %w", err)
}

secrets_manager.WerfHomeDir = werf.GetHomeDir()

if err := action.Render(ctx, action.RenderOptions{
ChartDirPath: chartPath,
ChartRepositoryInsecure: *commonCmdData.InsecureHelmDependencies,
Expand Down
2 changes: 2 additions & 0 deletions pkg/werf/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/werf/lockgate/pkg/file_lock"
"github.com/werf/lockgate/pkg/file_locker"
"github.com/werf/logboek"
"github.com/werf/nelm/pkg/secrets_manager"
)

var (
Expand Down Expand Up @@ -152,6 +153,7 @@ func Init(tmpDirOption, homeDirOption string) error {
sharedContextDir = filepath.Join(homeDir, "shared_context")
localCacheDir = filepath.Join(homeDir, "local_cache")
serviceDir = filepath.Join(homeDir, "service")
secrets_manager.WerfHomeDir = homeDir

file_lock.LegacyHashFunction = true

Expand Down

0 comments on commit 8e78762

Please sign in to comment.