Skip to content

Commit

Permalink
Fix --allow-unreleased flag for helm 3
Browse files Browse the repository at this point in the history
  • Loading branch information
databus23 committed Oct 25, 2019
1 parent cd5743f commit 0ff0861
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ func (d *diffCmd) runHelm3() error {
if err != nil && strings.Contains(err.Error(), "release: not found") {
if d.allowUnreleased {
fmt.Printf("********************\n\n\tRelease was not present in Helm. Diff will show entire contents as new.\n\n********************\n")
newInstall = true
err = nil
} else {
fmt.Printf("********************\n\n\tRelease was not present in Helm. Include the `--allow-unreleased` to perform diff without exiting in error.\n\n********************\n")
return err
}

}
if err != nil {
return fmt.Errorf("Failed to get release %s in namespace %s: %s", d.release, d.namespace, err)
Expand Down
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "diff"
# Version is the version of Helm plus the number of official builds for this
# plugin
version: "3.0.0-rc.4"
version: "3.0.0-rc.5"
usage: "Preview helm upgrade changes as a diff"
description: "Preview helm upgrade changes as a diff"
useTunnel: true
Expand Down

0 comments on commit 0ff0861

Please sign in to comment.