Skip to content

Add option to hide resources with no significant changes in plan output #505

@abrekhov

Description

@abrekhov

Problem

When running nelm release plan install, resources with only insignificant changes are displayed with <hidden insignificant changes> placeholder:

┌ Update CustomResourceDefinition/gitlabs.apps.gitlab.com
│ <hidden insignificant changes>
└ Update CustomResourceDefinition/gitlabs.apps.gitlab.com
┌ Update Certificate/gitlab-serving-cert
│ <hidden insignificant changes>
└ Update Certificate/gitlab-serving-cert
...

In large releases with many resources, this creates a lot of noise, making it harder to spot actual significant changes.

Proposed Solution

Add a flag like --hide-unchanged or --only-significant that completely omits resources from the output when they have no significant diff (i.e., when uDiff is empty after filtering).

Currently in internal/plan/planned_changes.go:

if uDiff == "" {
    uDiff = HiddenInsignificantChanges
}

With the new flag, these resources could be skipped entirely from the output instead of showing the placeholder.

Expected Behavior

nelm release plan install --hide-unchanged chart.tgz

Would only show resources that have actual significant changes, improving readability.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions