Skip to content
Permalink
Browse files
fix(dismiss): --with-namespace created empty namespace if release alr…
…eady uninstalled

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed Jun 7, 2022
1 parent 23d3469 commit 7c1ab9bc8ccdfabd468bcb2538d04eab37a8a5a1
Showing 1 changed file with 6 additions and 4 deletions.
@@ -187,10 +187,12 @@ func runDismiss(ctx context.Context) error {
}

var lockManager *lock_manager.LockManager
if m, err := lock_manager.NewLockManager(namespace); err != nil {
return fmt.Errorf("unable to create lock manager: %w", err)
} else {
lockManager = m
if !cmdData.WithNamespace {
if m, err := lock_manager.NewLockManager(namespace); err != nil {
return fmt.Errorf("unable to create lock manager: %w", err)
} else {
lockManager = m
}
}

chartDir, err := common.GetHelmChartDir(werfConfigPath, werfConfig, giterminismManager)

0 comments on commit 7c1ab9b

Please sign in to comment.