Skip to content

Commit 609de73

Browse files
Skip helm get hooks when --three-way-merge=true (databus23#423)
1 parent c5e5f19 commit 609de73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
HELM_HOME ?= $(shell helm home)
22
VERSION := $(shell sed -n -e 's/version:[ "]*\([^"]*\).*/\1/p' plugin.yaml)
33

4-
HELM_3_PLUGINS := $(shell bash -c 'eval $$(helm env); echo $$HELM_PLUGINS')
4+
HELM_3_PLUGINS := $(shell helm env HELM_PLUGINS)
55

66
PKG:= github.com/databus23/helm-diff/v3
77
LDFLAGS := -X $(PKG)/cmd.Version=$(VERSION)

cmd/upgrade.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ func (d *diffCmd) runHelm3() error {
282282

283283
currentSpecs := make(map[string]*manifest.MappingResult)
284284
if !newInstall && !d.dryRun {
285-
if !d.noHooks {
285+
if !d.noHooks && !d.threeWayMerge {
286286
hooks, err := getHooks(d.release, d.namespace)
287287
if err != nil {
288288
return err

0 commit comments

Comments
 (0)