helm-diff icon indicating copy to clipboard operation
helm-diff copied to clipboard

helm diff should not error with --reuse-values if release doesn't exist

Open frankh opened this issue 11 months ago • 0 comments

helm diff version: 3.6.0

helm diff upgrade --allow-unreleased release charts/my-chart --namespace stuff --reuse-values
********************

	Release was not present in Helm.  Diff will show entire contents as new.

********************
Error: Failed to render chart: exit status 1
Error: plugin "diff" exited with error

running the equivalent helm upgrade command does not error:

helm upgrade release charts/my-chart --namespace stuff --install --reuse-values --dry-run

In fact when using HELM_DIFF_USE_UPGRADE_DRY_RUN the --reuse-values flag should do nothing except pass through the flag to helm upgrade

frankh avatar Jul 10 '23 13:07 frankh