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

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

Description

@mdumfart
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.

Activity

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