fix: use --dry-run=server by default for Helm v4 to fix .Capabilities.APIVersions by yxxhero · Pull Request #928 · databus23/helm-diff

added 2 commits

February 11, 2026 14:37
….APIVersions

For Helm v4, --dry-run=server should be used by default to get the correct
.Capabilities.APIVersions.Has behavior. This is only applied when the user
hasn't explicitly set --dry-run=client.

Fixes #894

Signed-off-by: yxxhero <aiopsclub@163.com>
Signed-off-by: yxxhero <aiopsclub@163.com>

@yxxhero

Add unit tests for PR #928 to verify the dry-run flag behavior for
Helm v4, which uses --dry-run=server by default to get correct
.Capabilities.APIVersions.

Signed-off-by: yxxhero <aiopsclub@163.com>

@yxxhero

- Fix conditions to properly handle dryRunMode="true" (behaves like client)
- Fix conditions to properly handle dryRunMode="false" (behaves like none)
- Add test cases for boolean dry-run modes
- Remove leftover HELM_DEBUG from CI workflow

Signed-off-by: yxxhero <aiopsclub@163.com>

@yxxhero yxxhero deleted the fix/issue-894-helm-v4-dry-run-server branch

February 28, 2026 00:18

SachinMaharana pushed a commit to SachinMaharana/helmsman that referenced this pull request

Mar 12, 2026
v3.15.2 defaults to --dry-run=server for Helm v4, fixing
.Capabilities.APIVersions.Has evaluation.

databus23/helm-diff#928