Skip to content

Commit

Permalink
Merge pull request #4519 from werf/feat-dismiss-dont-fail-if-release-…
Browse files Browse the repository at this point in the history
…not-found

feat(dismiss): dont fail if no release found
  • Loading branch information
ilya-lesikov committed Jun 7, 2022
2 parents aacbfaa + 7a52338 commit a805b8a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 5 additions & 3 deletions cmd/werf/dismiss/dismiss.go
Expand Up @@ -230,10 +230,12 @@ func runDismiss(ctx context.Context) error {
return err
}

dontFailIfNoRelease := true
helmUninstallCmd := helm_v3.NewUninstallCmd(actionConfig, logboek.Context(ctx).OutStream(), helm_v3.UninstallCmdOptions{
StagesSplitter: helm.StagesSplitter{},
DeleteNamespace: &cmdData.WithNamespace,
DeleteHooks: &cmdData.WithHooks,
StagesSplitter: helm.StagesSplitter{},
DeleteNamespace: &cmdData.WithNamespace,
DeleteHooks: &cmdData.WithHooks,
DontFailIfNoRelease: &dontFailIfNoRelease,
})

if cmdData.WithNamespace {
Expand Down
1 change: 0 additions & 1 deletion cmd/werf/helm/helm.go
Expand Up @@ -203,7 +203,6 @@ func NewCmd() *cobra.Command {
} else {
panic(fmt.Sprintf("unexpected command %q, please report bug to the https://github.com/werf/werf", cmd.Name()))
}

}
}
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -307,6 +307,6 @@ replace k8s.io/helm => github.com/werf/helm v0.0.0-20210202111118-81e74d46da0f

replace github.com/deislabs/oras => github.com/werf/third-party-oras v0.9.1-0.20210927171747-6d045506f4c8

replace helm.sh/helm/v3 => github.com/werf/3p-helm/v3 v3.0.0-20220607090441-92d1c219cc69
replace helm.sh/helm/v3 => github.com/werf/3p-helm/v3 v3.0.0-20220607095328-f3081d5407cf

replace github.com/go-git/go-git/v5 => github.com/ZauberNerd/go-git/v5 v5.4.3-0.20220315170230-29ec1bc1e5db
4 changes: 2 additions & 2 deletions go.sum
Expand Up @@ -2032,8 +2032,8 @@ github.com/vmware/govmomi v0.20.3/go.mod h1:URlwyTFZX72RmxtxuaFL2Uj3fD1JTvZdx59b
github.com/weppos/publicsuffix-go v0.4.0/go.mod h1:z3LCPQ38eedDQSwmsSRW4Y7t2L8Ln16JPQ02lHAdn5k=
github.com/weppos/publicsuffix-go v0.5.0 h1:rutRtjBJViU/YjcI5d80t4JAVvDltS6bciJg2K1HrLU=
github.com/weppos/publicsuffix-go v0.5.0/go.mod h1:z3LCPQ38eedDQSwmsSRW4Y7t2L8Ln16JPQ02lHAdn5k=
github.com/werf/3p-helm/v3 v3.0.0-20220607090441-92d1c219cc69 h1:Ri3CCX9UOThJ7Ie5MGV0dOgomgsDu+2VTPDa4XP09yw=
github.com/werf/3p-helm/v3 v3.0.0-20220607090441-92d1c219cc69/go.mod h1:NxtE2KObf2PrzDl6SIamPFPKyAqWi10iWuvKlQn/Yao=
github.com/werf/3p-helm/v3 v3.0.0-20220607095328-f3081d5407cf h1:fc5tXr3GvsGYQGdODC6jXvhx3CkHCeY7yPCpK45xJ48=
github.com/werf/3p-helm/v3 v3.0.0-20220607095328-f3081d5407cf/go.mod h1:NxtE2KObf2PrzDl6SIamPFPKyAqWi10iWuvKlQn/Yao=
github.com/werf/copy-recurse v0.2.4 h1:kEyGUKhgS8WdEOjInNQKgk4lqPWzP2AgR27F3dcGsVc=
github.com/werf/copy-recurse v0.2.4/go.mod h1:KVHSQ90p19xflWW0B7BJhLBwmSbEtuxIaBnjlUYRPhk=
github.com/werf/helm v0.0.0-20210202111118-81e74d46da0f h1:81YscYTF9mmTf0ULOsCmm42YWQp+qWDzWi1HjWniZrg=
Expand Down
Expand Up @@ -7,9 +7,8 @@ import (
"strings"
"text/template"

"github.com/werf/werf/pkg/deploy/helm/chart_extender/helpers/secrets"

"github.com/werf/logboek"
"github.com/werf/werf/pkg/deploy/helm/chart_extender/helpers/secrets"
)

func SetupIncludeWrapperFuncs(funcMap template.FuncMap) {
Expand Down

0 comments on commit a805b8a

Please sign in to comment.