Skip to content

Add optional color support to Helm CLI output #31031

Closed

Description

@Mazafard

What would you like to be added?

I’d like to introduce optional ANSI color support to Helm CLI output via a --color flag. This would help users visually distinguish important elements such as:

  • Status labels (e.g., deployed, failed)
  • Section headers (e.g., REVISION, NAMESPACE)
  • Contextual metadata like release names or ports

The colorization should:

  • Be opt-in (disabled by default)
  • Detect if output is interactive (isatty) and disable colors in non-TTY contexts like piping to a file
  • Be applied conservatively to avoid disrupting scripting/parsing

The implementation will leverage existing dependencies like fatih/color, already vendored in Helm.

A working prototype is being prepared locally and could be contributed as a reference implementation. The changes are confined to output formatting in selected commands such as:

  • helm status
  • helm list
  • helm install

I’d be happy to move this into a formal HIP if maintainers see value in this idea.

Why is this needed?

Colorful CLI output is standard in many popular DevOps tools (e.g., kubectl, docker, git, terraform). Adding color support will:

  • Improve human readability and focus during CI/CD or release debugging
  • Enhance developer experience when interpreting Helm output
  • Enable terminal themes or UI-based Helm wrappers to parse visual cues more easily

Since Helm often outputs logs, ports, and resource status, making these visually distinct helps developers debug and understand the state of their deployments faster.

This would align Helm with modern CLI UX practices while preserving backward compatibility for pipelines and machine parsing.

Activity

  1. robertsirc commented on Jul 8, 2025

    @robertsirc
    Member

    I did review the PR for this. I have the same question that I put out to the other maintainers on if color should be on by default.

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