Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Unregistered Annotations warning is not affected by --no-color flag #570

Open
1 of 2 tasks
mdumfart opened this issue Aug 24, 2023 · 1 comment
Open
1 of 2 tasks

Comments

@mdumfart
Copy link

mdumfart commented Aug 24, 2023

ISSUE TYPE
  • Bug Report
  • Feature Idea

BUG REPORT

SUMMARY

I am running a DIY build of kubeaudit, slightly modified to run as a job within my k8s cluster.
To retrieve the results of the kubeaudit job I fetch all logs from the underlying pod.
The logs also include the warning introduced with PR 527, which is not affected by the --no-color flag.

ENVIRONMENT
  • Kubeaudit version: 0.22.0
  • Kubeaudit install method: DIY-BUILD
STEPS TO REPRODUCE

Run kubeaudit with --no-color flag.
For example: kubeaudit all --no-color --format=json

EXPECTED RESULTS

No color-codings in kubeaudit results as well as error and warning messages.

ACTUAL RESULTS

The color-coding for the "Unregistered Annotations" warning is still present.
Snippet of the logs:

time="2023-08-24T11:21:27Z" level=info msg="Running inside cluster, using the cluster config"
�[33m
[WARNING]: kubernetes.io for override labels will soon be deprecated. Please, update them to use kubeaudit.io instead.
@github-actions
Copy link

Thanks for opening your first issue here! Be sure to follow the issue template!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant