Skip to content

Commit 0ff0861

Browse files
committed
Fix --allow-unreleased flag for helm 3
1 parent cd5743f commit 0ff0861

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/upgrade.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ func (d *diffCmd) runHelm3() error {
113113
if err != nil && strings.Contains(err.Error(), "release: not found") {
114114
if d.allowUnreleased {
115115
fmt.Printf("********************\n\n\tRelease was not present in Helm. Diff will show entire contents as new.\n\n********************\n")
116+
newInstall = true
116117
err = nil
117118
} else {
118119
fmt.Printf("********************\n\n\tRelease was not present in Helm. Include the `--allow-unreleased` to perform diff without exiting in error.\n\n********************\n")
119120
return err
120121
}
121-
122122
}
123123
if err != nil {
124124
return fmt.Errorf("Failed to get release %s in namespace %s: %s", d.release, d.namespace, err)

plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: "diff"
22
# Version is the version of Helm plus the number of official builds for this
33
# plugin
4-
version: "3.0.0-rc.4"
4+
version: "3.0.0-rc.5"
55
usage: "Preview helm upgrade changes as a diff"
66
description: "Preview helm upgrade changes as a diff"
77
useTunnel: true

0 commit comments

Comments
 (0)