Skip to content

[Bug] [CLI] --remove-color ignored with --detailed-results on failed tests

Kyverno CLI Version

1.15.0

Description

The --remove-color flag is ignored when used with --detailed-results resulting in color coded output regardless of TERM setting.

Temporary workaround for CI/CD is piping the output through aha (ANSI HTML Adapter) which converts the ansi code sequences into tags for parsing, but it would be nice to have an option to output non-ansi-coded diffs.

Steps to reproduce

  1. kyverno test (testdir) --remove-color --detailed-results returns diffs in red/green ansi coloration for any policies that are not passing.

Expected behavior

Expected non-ansi-coded diffs to be displayed (useful for ci/cd pipelines and agentic ai tooling).

Screenshots

No response

Kyverno logs

n/a

Slack discussion

n/a

Troubleshooting

  • I have read and followed the troubleshooting guide.
  • I have searched other issues in this repository and mine is not recorded.