Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant