Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cmd/helm3.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ func (d *diffCmd) template(isUpgrade bool) ([]byte, error) {
return nil, fmt.Errorf("`diff upgrade --dry-run` conflicts with HELM_DIFF_USE_UPGRADE_DRY_RUN_AS_TEMPLATE. Either remove --dry-run to enable cluster access, or unset HELM_DIFF_USE_UPGRADE_DRY_RUN_AS_TEMPLATE to make cluster access unnecessary")
}

if d.isAllowUnreleased() {
// Otherwise you get the following error when this is a diff for a new install
// Error: UPGRADE FAILED: "$RELEASE_NAME" has no deployed releases
flags = append(flags, "--install")
}

flags = append(flags, "--dry-run")
subcmd = "upgrade"
filter = func(s []byte) []byte {
Expand Down