Skip to content

HELM_DIFF_USE_UPGRADE_DRY_RUN=true doesn't work for new install #369

Closed
@mumoshu

Description

@mumoshu

I was running a few helm-diff commands against my local kind cluster with Helm 3.7.2 and the edge version of helm-diff built from #364.

It worked great for upgrades, but not for new installs. When it's a diff for a new install it failed with:

HELM_DIFF_USE_UPGRADE_DRY_RUN=true HELM_NAMESPACE=default HELM_BIN=helm372   ./helm-diff upgrade my3 stable/mysql
********************

        Release was not present in Helm.  Include the `--allow-unreleased` to perform diff without exiting in error.

********************
Error: exit status 1: Error: release: not found

Running it with --allow-unreleased (or --install which is a preferred alias of --allow-unreleased) as advised in the message didn't prevent the error.

After a bit of digging, this turned out to be a bug in helm-diff, which doesn't pass --install to the helm-upgrade-dry-run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions