Skip to content

Color flag is not working after upgrade #880

Open

Description

@albertschwarzkopf

Hi, since latest version 3.14.0 the flag --color is not working anymore:

helm diff upgrade --color -f values.yaml

The error is:

level=WARN msg="command failed" error="invalid color mode \"-f\": must be one of: never, auto, always"

After downgrade to version v3.13.2 it works again.

Seems that it is necessary to set one of the values never, auto, always now.

Would be nice if you could fix it or update the documentation.

Activity

  1. yxxhero commented on Nov 21, 2025

    @yxxhero
    Collaborator
  2. runningman84 commented on Nov 21, 2025

    @runningman84

    it would be great to have the command line option backward compatible.

  3. yxxhero commented on Nov 22, 2025

    @yxxhero
    Collaborator

    @runningman84 this is helm v4 error message. plase show you helm and helm-diff version.

  4. runningman84 commented on Nov 24, 2025

    @runningman84

    we used helm 4.0.0 and helm-diff 3.14.0

  5. yxxhero commented on Nov 24, 2025

    @yxxhero
    Collaborator

    @runningman84 helm v4 and helm diff v3.13.2 is ok?

  6. runningman84 commented on Nov 25, 2025

    @runningman84
    ╭─ user@machine    ~/Doc*/gith*/web-bedrock-sample  ⎈ mycluster/default         master    189  1                                    
    ╰─ helm plugin install --verify=false https://github.com/databus23/helm-diff --version 3.13.2
    WARNING: Skipping plugin signature verification
    Downloading https://github.com/databus23/helm-diff/releases/download/v3.13.2/helm-diff-macos-arm64.tgz
    Preparing to install into /Users/myuser/Library/helm/plugins/helm-diff
    Installed plugin: diff
    ╭─ user@machine    ~/Doc*/gith*/web-bedrock-sample  ⎈ mycluster/default         master    189  1                          6.07s   
    ╰─ helm plugin list                                                                          
    NAME	VERSION	TYPE  	APIVERSION	PROVENANCE	SOURCE 
    diff	3.13.2 	cli/v1	legacy    	unknown   	unknown
    ╭─ user@machine    ~/Doc*/gith*/web-bedrock-sample  ⎈ mycluster/default         master    189  1                                    
    ╰─ helm diff upgrade app-caddy ../helm-chart-caddy --color -f values.yaml                    
    level=WARN msg="command failed" error="invalid color mode \"-f\": must be one of: never, auto, always"
    ╭─ user@machine    ~/Doc*/gith*/web-bedrock-sample  ⎈ mycluster/default         master    189  1                                 1 ↵ 
    ╰─ helm version
    version.BuildInfo{Version:"v4.0.0", GitCommit:"99cd1964357c793351be481d55abbe21c6b2f4ec", GitTreeState:"clean", GoVersion:"go1.25.4", KubeClientVersion:"v1.34"}
    
  7. yxxhero commented on Dec 20, 2025

    @yxxhero
    Collaborator

    @runningman84 you can set it by env var.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions